diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-25 22:08:29 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-25 22:08:29 +0000 |
commit | a967f738c83b960f23f5b04403a17ca37f049e25 (patch) | |
tree | 5981164c9b3b1bc7bee144852379aacf27e830ef /lib/mathn.rb | |
parent | 7123baaf140e58e1292553dca9650ac23a2b5da3 (diff) | |
download | ruby-a967f738c83b960f23f5b04403a17ca37f049e25.tar.gz |
* 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.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 |