From: m b Date: 2011-06-18T04:52:17+09:00 Subject: Re: Rename Kernel ? --_5198c489-010e-4e03-b5eb-2f4a5f0f6a67_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > > 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=2C but just to get a better grip of what's goin= g on. > > But I rather use K.puts if that's possible... > > I tried 'alias' but it doesn't seem to work with module names? > > >=20 > 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= =2C > "K"=2C that points to that same object. >=20 > K =3D Kernel > K.puts "Hello world!" Ok. Thank you for explaining. = --_5198c489-010e-4e03-b5eb-2f4a5f0f6a67_--