aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 12:39:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-30 12:39:53 +0000
commit8248c26e6dfb2d80c03c65ca51bca62992e5c959 (patch)
treec9e50313b28ebed27525b91497ab9a1698f6639a /lib
parentd0e2d150b8bc9d18d2beff1752086237a627b509 (diff)
downloadruby-8248c26e6dfb2d80c03c65ca51bca62992e5c959.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/mathn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index d07388bc26..9e33f45580 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -79,7 +79,7 @@ end
#
# (2**72) / ((2**70) * 3) # => 4/3
-class Bignum
+class Integer
remove_method :/
##