From 333eb8380f00d50c3a1d4d86ada9cc4c879a4053 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 23 Jan 2003 08:27:06 +0000 Subject: * 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 --- lib/rational.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/rational.rb') diff --git a/lib/rational.rb b/lib/rational.rb index af4eada071..1e41b9a28a 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 -- cgit v1.2.3