Report abuse


			
class Array
  def call(method)
    each {|e| send(method, e)}
  end

  def poop(what)
    puts "Hello"
  end
end

# Will never get called
def poop(x)
  puts "pooping #{x}"
end

def what(y)
  puts "Whatttt #{y}"
end

a = [1,2,3]
a.call(:poop)
a.call(:what)