From: Bernd Burnt Date: 2007-05-11T23:28:02+09:00 Subject: Re: Is there a possibility to include methods of a class? Mariusz Pietrzyk wrote: > Bernd pisze: >> >> 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. I just thought, if there is a possibility to do dynamic inheritance like def some_method Some_class < ActiveRecord::Base end -- Posted via http://www.ruby-forum.com/.