Matthias Veit <matthias_veit / yahoo.de> writes: > Hi, > > I want to copy code from one class to another at runtime. > > ------------------ > class A > def a > end > end > > class B < Other > end > > copy(A, B) #do magic ... > The most elegant way would be the use of the standard > include-mechanism of ruby, but this works only for modules. > (Is there a way to turn a class into a module?) How about just putting the code intoa module and including it on both A and B? Dave