From: Christian Neukirchen Date: 2006-08-25T18:51:45+09:00 Subject: Re: Support for singleton_class() (was Re: Call functions of superclass) Matthew Johnson writes: >>> >> # Sigh -- Matz, *please* can we have this? :-) >>> >> def singleton_class >>> >> class << self; self; end >>> >> end >> >> +100 - please give us singleton_class! > > I concur as well and have been using this myself. 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.) -- Christian Neukirchen http://chneukirchen.org