From: Austin Ziegler Date: 2006-08-25T20:25:12+09:00 Subject: Re: Support for singleton_class() (was Re: Call functions of superclass) On 8/25/06, Christian Neukirchen wrote: > While we are at adding methods, who else would like ot have a method > that returns the current block, so you can access it without needing > to declare it in the arguments list? (And likewise for lambda{}, even > if 1.9 fixes that.) Um. Me. That would totally rock. def foo blah blah my_block = current_block if block_given? end That would mean that I wouldn't need block boxing unless that path was taken in code. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca