From: Avi Bryant Date: 2001-08-24T12:11:27+09:00 Subject: [ruby-talk:20242] Re: Inherit singleton method? On Fri, 24 Aug 2001, news.sympatico.qc.ca wrote: > The problem is that I would have a copy of the value (attributes) as it was > when 'clone' was invoked. Instead of having the current state of the object > duplicated, I would prefer having a new object ('initialize' method invoked, > ....) Well, you could always invoke the initialize method explicitly. I should point out that it is possible to get the true class of a singleton object - for example, class << obj define_method(:singleton_class) {self} end but Ruby won't let you subclass or instantiate it. What you're trying isn't so strange, by the way. There's a whole class of languages (well, a small class of languages) that are "prototype-based" in this way. You might want to look at Sun's abandoned Self project, for example, which is quite cool. Avi