From: ara.t.howard@... Date: 2006-08-25T04:27:39+09:00 Subject: Re: do not understand this closure On Fri, 25 Aug 2006, Mauricio Fernandez wrote: >> huh. so '()' is a method name now? > > nope, it's just sugar standing for #call: > > RUBY_VERSION # => "1.9.0" > RUBY_RELEASE_DATE # => "2006-08-13" > a = Object.new > def a.call(x); x+1 end > a.(2) # => 3 hmmm. seems pointless. unless i can do a_method_or_proc(arg) it one more chare than a_proc[arg] a_method[arg] oh well, thanks for the info! -a -- to foster inner awareness, introspection, and reasoning is more efficient than meditation and prayer. - h.h. the 14th dalai lama