From: MonkeeSage Date: 2006-09-26T02:40:18+09:00 Subject: Re: How to copy a method from one class to another Sam Kong wrote: > Let's say that there's a class (C1) in a library and I'm building my > own class hierarchy including C2 (class C2 < SomeOtherClass). > In such a case, Inheritance or mix-in is not an option. Unless I misunderstand, a mixin is fine: module C1 def f p self.class end end class C2; end class C3 < C2 include C1 end C3.new.f # => "C3" Regards, Jordan