From: Albert Schlef Date: 2008-05-08T22:17:48+09:00 Subject: Re: to check for numericality > > newval = someValue if ( Float( someValue ) rescue false ) 'Float' is a class, ins't it? So how can you do "Float(whatever)" as if it were a method? Now, when I do "Kernel.methods" I _do_ see "Float", "Integer" etc in the list. Is it the method "Kernel.Float" that eventually gets called? How does ruby know to distinguish between the class Float and the method Kernel.Float? BTW, why, when I do "Object.methods" don't I see "Float", "Integer" etc in the list? Some more methods too are missing. Object is supposed to inherit them from Kernel, doesn't it? -- Posted via http://www.ruby-forum.com/.