From: Nilesh Trivedi Date: 2009-08-25T23:43:29+09:00 Subject: Re: Calling method from another class On Tue, Aug 25, 2009 at 7:30 PM, louposk wrote: > Hi guys, > thank you both for your answers! So the only way to do this is with > modules i guess.... > You both helped me clear the black clouds inside my mind! :) > > Something else. A mixin and a module is the same thing?? > > I have a related question. "Class" is a subclass of "Module". Then why is it that I can include a Module but not another Class? class A end class B include A # Throws a TypeError: wrong argument type Class (expected Module) end IIRC, there used to be a ruby plugin called evil_ruby which allowed this. Why isn't this supported natively in Ruby? cheers nilesh http://nileshtrivedi.in