Hi all!

I've been over (some of) the documentation, and I can't figure this one
out, can anyone tell me what range is expecting? And, why it's behavior
is different from other numerics?

$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
$ irb
irb(main):001:0> 1.class
=> Fixnum
irb(main):002:0> 3.14.class
=> Float
irb(main):003:0> 1..4.class
ArgumentError: bad value for range
        from (irb):3
        from :0
irb(main):004:0> (1..4).class
=> Range
irb(main):005:0>

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