diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-12 11:47:12 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-12 11:47:12 +0000 |
commit | bd2c5f691d035e781431362571083067945afe86 (patch) | |
tree | 8e3605387126d68c7340fc53dda5de1455a6e090 /lib/mathn.rb | |
parent | a115c929cf78e2edabd026f9e449712dd0541067 (diff) | |
download | ruby-bd2c5f691d035e781431362571083067945afe86.tar.gz ruby-bd2c5f691d035e781431362571083067945afe86.tar.xz ruby-bd2c5f691d035e781431362571083067945afe86.zip |
* lib/rational.rb (floor, ceil, truncate, round): do not use
definitions of Numeric.
* lib/rational.rb (to_i): should returns truncated self.
* lib/complex.rb (numerator): requires
Integer#{numerator,denominator}.
* lib/complex.rb (quo): do not use definition of Numeric.
* lib/complex.rb (>, >=, <, <=, between?, div, divmod, modulo,
floor, ceil, truncate, round): undef'ed.
* lib/mathn.rb (Rational#inspect): removed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r-- | lib/mathn.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb index 3e24dd03f..724d37ea6 100644 --- a/lib/mathn.rb +++ b/lib/mathn.rb @@ -121,11 +121,6 @@ end class Rational Unify = true - remove_method :inspect - def inspect - format "%s/%s", numerator.inspect, denominator.inspect - end - alias power! ** def ** (other) |