From: Albert Schlef Date: 2008-05-08T23:48:01+09:00 Subject: Re: to check for numericality ts wrote: > Albert Schlef wrote: > > How does ruby know to distinguish between the class Float and the method > > Kernel.Float? > > Because you use it like a method, i.e. you have added () after it > > Float() ==> method > Float ==> constant I see. > > when I do "Object.methods" don't I see "Float", "Integer" etc > > in the list [...] Object is supposed to inherit them from Kernel, > > doesn't it? > > #Float is a global function, i.e. a Kernel private method > [...] Thanks Guy. -- Posted via http://www.ruby-forum.com/.