From: Simon Strandgaard Date: 2004-03-09T00:19:39+09:00 Subject: Re: proposal: class< 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. ;-) server> ruby a.rb #> a.rb:7: warning: instance variable @str not initialized nil server> cat a.rb obj = "text" class << obj def init @str = "hello" end def hello puts @str end p self #p self.methods #p self.singleton_methods end obj.hello server> -- Simon Strandgaard