From: Mike Moore Date: 2011-06-18T04:34:07+09:00 Subject: Re: Rename Kernel ? --0015174c42e625ec3d04a5ed64a0 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 17, 2011 at 12:53 PM, m b wrote: > > Hi. > > I'm learning ruby. Amateur programmer. > I like to use the verbose form to call metods in module Kernel e. g. > 'puts' like this 'Kernel.puts' > I now it's not required, but just to get a better grip of what's going on. > But I rather use K.puts if that's possible... > I tried 'alias' but it doesn't seem to work with module names? > The constant "Kernel" is pointing to the module object that has has the methods you are interested in. What you want is to create a new constant, "K", that points to that same object. K = Kernel K.puts "Hello world!" --0015174c42e625ec3d04a5ed64a0--