From: Kenneth McDonald Date: 2008-11-27T12:12:22+09:00 Subject: Re: How to get a reference to a block (when no explicit block parameter is used?) Whoops, apologies to all. Didn't realize &b arguments were optional. K On Nov 26, 2008, at 11:00 AM, Yossef Mendelssohn wrote: > On Nov 26, 10:54 am, Kenneth McDonald > wrote: >> Unfortunately, that produces a method that _requires_ a block--I want >> one where the block is optional. But thanks for the feedback. > > Did you try it? > >>> my_meth(5) { puts 'hi' } > # >>> my_meth(5) > nil > > -- > -yossef >