Hi,
In message "[ruby-talk:29418] Is this a bug?"
on 01/12/26, Ryo Saeba <ryo_saeba_009 / yahoo.com> writes:
|irb(main):008:0> Integer("0\n")
|ArgumentError: invalid value for Integer: "0
|"
| from (irb):8:in `Integer'
| from (irb):8
|
|Is that a bug?
No. Integer() checks more strictly. It's the spec.
matz.