From: Sam Kong Date: 2006-09-26T03:35:01+09:00 Subject: Re: How to copy a method from one class to another Hi Verno, Verno Miller wrote: >>Posted by Sam Kong >>on 25.09.2006 18:11 >> >> Hi Rubyists, >> >> Is there a way to copy an instance method from one class to another? > > > How about using something like "inheritance and super function"? > > http://www.ruby-forum.com/topic/81049 But C1 and C2 are in different class hierarchies. C2 is not a kind of C1. What I'm trying to do is to copy(or reuse) the implementation of another class in a different hierarchy. Sam -- Posted via http://www.ruby-forum.com/.