Issue #2134 has been updated by tadayoshi funaba.


this is not a bug report.
this is not a matter for rational and complex.
close by yourself.

i believe inspect is for debug.
to eval any ouput of inspect is bad manner.

$ ./ruby -e 'p 0.0/0'
NaN
$ ./ruby -e 'p eval("NaN")'
-e:1:in `eval': uninitialized constant NaN (NameError)

$ ./ruby -e 'p 1.0/0'
Infinity
$ ./ruby -e 'p eval("Infinity..Infinity")'
-e:1:in `eval': uninitialized constant Infinity (NameError)

String#dump is one of what you want.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2134

----------------------------------------
http://redmine.ruby-lang.org