Strange behaviour for kernel#integer method
I tried this one with ruby 2.3.1 and ruby 2.4.1.
Integer('04') 4 Integer('05') 5 Integer('08') ArgumentError: invalid value for Integer(): "08" Integer('09') ArgumentError: invalid value for Integer(): "09"
Does this makes sense?
Updated by shevegen (Robert A. Heiler) almost 2 years ago
Docu is at:
Perhaps the octal-notation could also be put into the documentation there.
And an example could be added for octal-input leading to error such as the
above. That would help explain things to newcomers who may be surprised
about the behaviour.