On Wednesday, 5 February 2003 at 10:37:40 +0900, dblack / candle.superlink.net wrote: > Hi -- > > On Wed, 5 Feb 2003, Jon Hurst wrote: > > Finally, is it possible you really want to extend the current object, > rather than include it in the object's class? Something like: > > class MyClass > require 'something' # contains SomeModule > def my_method > extend(SomeModule) > end > end > > This would add the methods in SomeModule to the current object. Wow, that is (as they say) sweet! I never thought about doing that. -- Jim Freeze