From: Avi Bryant Date: 2001-08-24T07:22:49+09:00 Subject: [ruby-talk:20215] Re: Inherit singleton method? On Fri, 24 Aug 2001, Marco Guay wrote: > I would like to create, just by curiosity (not a real-life situation), a new > object (like 'otherObj') based on OriginalClass, but with the specific > definition of 'x' (new method 'doSomething' included). By intuition, I > could do: > otherObject = x.new # not very interesting > or > otherObject = x.class.new # if class could be the modified local copy > of the class (if I can say that) How about: otherObject = x.clone Avi