From: Michael Campbell Date: 2003-12-17T23:43:09+09:00 Subject: Re: Copying methods from one class to another T. Onoma wrote: > 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. What sort of *real problem* are you trying to solve here with all these class/hierarchy shenanigans? __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/