mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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:
parent
d0e2d150b8
commit
8248c26e6d
4 changed files with 24 additions and 12 deletions
|
@ -79,7 +79,7 @@ end
|
|||
#
|
||||
# (2**72) / ((2**70) * 3) # => 4/3
|
||||
|
||||
class Bignum
|
||||
class Integer
|
||||
remove_method :/
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue