7stud -- wrote:

> Those 4 lines are equivalent to:
> 
> return method2
> 
> In ruby, that line looks strange--it looks like you are trying to return 
> the method itself.  However, that line is equivalent to:
> 
> return method2()
> 
> and the call to method2() will be replaced by the return value of 
> method2.

Thank you so much,

Li

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