From: Gennady Bystritksy Date: 2005-01-26T00:31:58+09:00 Subject: Re: Injecting methods from one class into another. George Moschovitis wrote: > Well, I know about modules, this is not what I want. > > I want to inject only ONE method from a class containing multiple > methods into another. > > -g. > > Object methods do not work in vacuum, they usually use instance variables to reffer to the object's state, possibly changing it (remember encapsulation ;-)?). How would you expect your inject_method() deal with it? Gennady.