Skip to content

Instantly share code, notes, and snippets.

Created August 2, 2014 19:20
[:select, :reject, :sort].each do |meth|
define_method(meth) do |*args, &block|
array_result = @internal_array.send(meth)
Dummy.new(array_result)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment