Bernd pisze: > Hi all, > first of all: this list and you rock! I know that there is no multiple > inheritance, but you can use the concept of mixin. > However, I want to inherit my class another and "mixin" methods from > another class. > To be more precise, > I have a class that inherits another one (that comes from a library and > I do not want to change) and I want the methods of ActiveRecord::Base in > my class. Is there a way to do that (without copying and paste the whole > ActiveRecord::Base class and changing it to a module)? > > Thanks in advance! > Yes, You can use evil ruby http://rubyforge.org/projects/evil like this: class Bar include Array.as_module end b = Bar.new b.push(1,2,3) p b # => [1,2,3] but this is bad resolve of your problem.