From: Devin Mullins Date: 2005-07-18T10:46:56+09:00 Subject: Re: alias of some methods does not work irb(main):001:0> Kernel.object_id => 20763780 irb(main):002:0> Kernel.class => Module Kernel is a constant (like Math::PI) that is an instance of Module. ancestors is an instance method of Module, so it is available on Kernel. Methods like 'puts' for example are module methods on Kernel. Meh, I'm too tired to explain better than that right now. :P Start Googling. Devin gga wrote: >Ok... but color me confused. Kernel is a module which has those >functions I could not alias. How does a module inherit functions from >a class? Also, why does Kernel.ancestors not show this relationship? >If I do Module.ancestors, it shows Kernel instead as one of its >ancestors. What kind of magic is going on behind the scenes here? > >