From: gga Date: 2005-07-18T10:25:54+09:00 Subject: Re: alias of some methods does not work > Because those don't belong to Kernel. They belong to the class Module... > > irb(main):015:0> class Module > irb(main):016:1> alias :meths :instance_methods > irb(main):017:1> end > => nil > irb(main):018:0> Module.meths > => ["send", "name", "class_eval", "object_id", "...etc.... > > Zach 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?