Hi, I was experimenting with the arguments of the methods and I have a
question:

As I can pass a method as an argument to another method?, For example:


def world
  print 'world!'
end

def aaa (string, method)
  print string
end

aaa ('hello', world)


When I invoke aaa, the method world should not be invoked because I'm
just passing it as argument and and neither I invoke this in the method
aaa, and yet it invokes!. Why is this?.

I welcome your support!. Sorry for bad english :)

-- 
Posted via http://www.ruby-forum.com/.