summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-23 08:27:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-23 08:27:06 +0000
commit333eb8380f00d50c3a1d4d86ada9cc4c879a4053 (patch)
tree65e40472106b90f927f2b3ef9e9928fc9c9e4a79 /lib/rational.rb
parent8637a41d2add02b92858073707070798841b1074 (diff)
* eval.c (rb_eval): do not warn discarding already undefined
method. * lib/rational.rb: undef quo before replacing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rational.rb')
-rw-r--r--lib/rational.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index af4eada..1e41b9a 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -317,6 +317,7 @@ class Fixnum
alias power! **;
end
+ undef quo
def quo(other)
Rational.new!(self,1) / other
end
@@ -339,7 +340,8 @@ class Bignum
if not defined? power!
alias power! **
end
-
+
+ undef quo
def quo(other)
Rational.new!(self,1) / other
end