From: ts Date: 2003-12-17T22:21:38+09:00 Subject: Re: Copying methods from one class to another >>>>> "T" == T Onoma writes: T> Essentially, combining two classes to behave as a single unit. The inner layer T> is the core class (superclass) and the outer layer is the wrapper class T> (subclass). The end-user deals with the wrapper, unknowingly that it is T> bumping things up to the hidden superclass b/c includes and method additions T> need to be in core class as usual. I've given the example nasun% ruby -e 'p Array.superclass' Object nasun% You really want to define the method #pop (which is actually in Array) in Object ? T> But it is difficult to get pieces to go in right places. Too bad define_method T> is not a pre-hook to method creation like append_features. We could have T> cut'em off at the pass ;-) You don't prefer to have #become, this is will be faster if you just want to crash ruby Guy Decoux