From: Pit Capitain Date: 2006-05-02T00:21:50+09:00 Subject: Re: More explicit Ruby code Brad schrieb: > I like to code like this: > > Kernel.puts("Print this string") > > instead of this: > > puts "Print this string" Brad, the two code snippets are not the same. The second sends the :puts message to self. The class of self inherits (possibly over several steps) from Object, which includes the Kernel module. So normally the two code snippets have the same effect, but this doesn't have to be. If you a) are sure that the :puts method isn't implemented anywhere on the inheritance chain for your current self object, or b) explicitly want to prevent eventually calling another :puts method, then you can code in the explicit form. For me personally, I only would use it in the case of b). a) seems to be too limiting for my taste. Regards, Pit