From: Wilson Bilkovich Date: 2006-04-28T08:21:52+09:00 Subject: Re: is_number function ? On 4/27/06, Todd S. wrote: > Daniel Harple wrote: > > > 1.is_a?(Numeric) # => true > > > > -- Daniel > > Thank you. I thought it was something to that effect. > Unfortunately it doesn't seem to work for me. > > > However I find that the above returns: > > 1.is_a(Numeric) > NoMethodError: undefined method `is_a' for 1:Fixnum > from (irb):4 > from :0 > > while, 1.is_a? Numeric does indeed return true. > > Don't forget the question mark.