From: Brian Candler Date: 2009-08-06T20:58:44+09:00 Subject: Re: Kernel's module methods? 7stud -- wrote: > How come you can call Kernel methods without a receiver? If I understand it rightly: because self is the top level object 'main', and main is an *instance* of Object. >> self => main >> self.class => Object >> module K >> def test2 >> puts "test2" >> end >> end => nil >> class Object; include K; end => Object >> test2 test2 => nil -- Posted via http://www.ruby-forum.com/.