diff options
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r-- | lib/mathn.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index f834893f3f..716b48602d 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -54,6 +54,7 @@ class Bignum end class Rational + remove_method :** def ** (other) if other.kind_of?(Rational) other2 = other @@ -188,6 +189,9 @@ module Math end end + class << self + remove_method(:sqrt) + end module_function :sqrt module_function :rsqrt end |