From: Tim Hunter Date: 2008-01-13T07:06:27+09:00 Subject: Re: Callable class with block blondinet wrote: > On 12 jan, 22:00, "ara.t.howard" wrote: >> On Jan 12, 2008, at 10:54 AM, blondinet wrote: >> >>> Any idea ? >> [] method can't take block unless you do >> >> A.send '[]' do >> end >> >> a @http://drawohara.com/ >> -- >> sleep is the best meditation. >> h.h. the 14th dalai lama > > Thanks for your response. However, I do not really understand why such > a behavior : for me, Class[] is just a shortcut for Class.[], which is > just a shortcut for Class.send '[]' ... Where am I wrong ? > Ruby's parser doesn't allow a block to follow []. -- RMagick: http://rmagick.rubyforge.org/ RMagick 2: http://rmagick.rubyforge.org/rmagick2.html