summaryrefslogtreecommitdiff
path: root/lib/mathn.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 22:08:29 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-25 22:08:29 +0000
commita967f738c83b960f23f5b04403a17ca37f049e25 (patch)
tree5981164c9b3b1bc7bee144852379aacf27e830ef /lib/mathn.rb
parent7123baaf140e58e1292553dca9650ac23a2b5da3 (diff)
* lib/matrix.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb4
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