Project

General

Profile

« Previous | Next » 

Revision fe2a6f65

Added by Kenta Murata over 7 years ago

Support two to_r-responding args in Rational()

  • 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