From: "Hal E. Fulton" Date: 2002-07-16T07:37:37+09:00 Subject: Re: cut & paste for code ----- Original Message ----- From: "Matthias Veit" To: "ruby-talk ML" Sent: Monday, July 15, 2002 5:29 PM Subject: Re: cut & paste for code > > What i want to achieve is described best with "copy inheritance" > - no real inheritance, more like copy the source code from one > class to another (as easy as in every editor). > The call T::B.new.a shall return a T::A not an R::A. > > > With the module approach it looks like: [snip] What I meant was more like this: class Other # whatever end module T def meth1 end def meth2 end def meth3 end end class A include T # more stuff? end class B < Other include T # more stuff? end What's wrong with this? Hal Fulton