Support two to_r-responding args in Rational()
to_r
rational.c (nurat_s_convert): call to_r to convert non-Numeric objects also if argc == 2 in Rational().
test/ruby/test_rational.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Support two
to_r
-responding args in Rational()rational.c (nurat_s_convert): call
to_r
to convert non-Numericobjects also if argc == 2 in Rational().
test/ruby/test_rational.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e