[Simon Strandgaard <neoneye / adslhome.dk>, 2004-03-08 16.19 CET] > On Tue, 09 Mar 2004 00:02:13 +0900, Carlos wrote: > [snip] > > Maybe you should ask for a method #singleton for singleton classes, > > that returns the object... ;) > > I tried poking around with 'singleton'.. but no luck. > Please give me some more hints. No... it doesn't exist (as I know), but if it existed, you could do what you are trying to do with class << obj def init ... end singleton.init end This is why I said that maybe you should ask for it (to Matz). Sorry for false expectations...