From 8248c26e6dfb2d80c03c65ca51bca62992e5c959 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 30 Apr 2016 12:39:53 +0000 Subject: 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 --- lib/mathn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 :/ ## -- cgit v1.2.3