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.


-- 
Posted via http://www.ruby-forum.com/.