diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-23 08:27:06 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-23 08:27:06 +0000 |
| commit | 2a3193fd79c0115b2235b880fc2b28c4d94f39bc (patch) | |
| tree | 65e40472106b90f927f2b3ef9e9928fc9c9e4a79 /lib | |
| parent | 168b939d911283206ce1aa4baa3d396f0c0f100f (diff) | |
| download | ruby-2a3193fd79c0115b2235b880fc2b28c4d94f39bc.tar.gz ruby-2a3193fd79c0115b2235b880fc2b28c4d94f39bc.tar.xz ruby-2a3193fd79c0115b2235b880fc2b28c4d94f39bc.zip | |
* eval.c (rb_eval): do not warn discarding already undefined
method.
* lib/rational.rb: undef quo before replacing.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rational.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rational.rb b/lib/rational.rb index af4eada07..1e41b9a28 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 |
