diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-27 16:45:09 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-27 16:45:09 +0000 |
commit | fe2a6f65b1108fc71d269daaf1c7f4d89ebec0cb (patch) | |
tree | 822d5d361d37977ece6a0dc0d85f04c549151d18 /.gitignore | |
parent | 71ee64a5b1e3c0937213a68f883bece12aa24a82 (diff) |
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
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions