From a967f738c83b960f23f5b04403a17ca37f049e25 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 25 Jan 2010 22:08:29 +0000 Subject: * lib/matrix.rb: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mathn.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/mathn.rb') 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 -- cgit v1.2.3