From: "T. Onoma" Date: 2003-12-17T22:15:34+09:00 Subject: Re: Copying methods from one class to another On Wednesday 17 December 2003 11:01 am, ts wrote: > >>>>> "T" == T Onoma writes: > > T> self.superclass.__send__(:define_method, m, meth) > > Sincerely, what do you expect which such a program ? Essentially, combining two classes to behave as a single unit. The inner layer is the core class (superclass) and the outer layer is the wrapper class (subclass). The end-user deals with the wrapper, unknowingly that it is bumping things up to the hidden superclass b/c includes and method additions need to be in core class as usual. But it is difficult to get pieces to go in right places. Too bad define_method is not a pre-hook to method creation like append_features. We could have cut'em off at the pass ;-) -- T.