summaryrefslogtreecommitdiff
path: root/lib/mathn.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 11:47:12 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-12 11:47:12 +0000
commit2b72892ac0de9ff1d05f2b21ed85ef09aa41c57e (patch)
tree8e3605387126d68c7340fc53dda5de1455a6e090 /lib/mathn.rb
parent7d4defbe1b3b267695446adac950d726538ea621 (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mathn.rb')
-rw-r--r--lib/mathn.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 3e24dd03f3..724d37ea6f 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)