Define Integer#/ instead of Bignum#/.

* numeric.c (rb_int_div): Define Integer#/.

* bignum.c (rb_big_div): Don't define Bignum#/.

* lib/mathn.rb (Integer#/): Replace Integer#/ instead of Bignum#/.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2016-04-30 12:39:53 +00:00
parent d0e2d150b8
commit 8248c26e6d
4 changed files with 24 additions and 12 deletions

View file

@ -79,7 +79,7 @@ end
#
# (2**72) / ((2**70) * 3) # => 4/3
class Bignum
class Integer
remove_method :/
##