summaryrefslogtreecommitdiff
path: root/lib/rational.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 16:02:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 16:02:55 +0000
commit4e07664e19c0e702416e98a606af88572554f81a (patch)
tree2801e487902c5fcabba197378085f0d64c756b4a /lib/rational.rb
parent7559d2fd7accfd9eab2c8ab5864a5c61d6016d1d (diff)
* lib/mathn.rb (Fixnum): remove debug print.
* lib/rational.rb (Rational): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rational.rb')
-rw-r--r--lib/rational.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rational.rb b/lib/rational.rb
index f4570bd306..2241004852 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -37,7 +37,6 @@
#
def Rational(a, b = 1)
- p [:Rational, a, b]
if a.kind_of?(Rational) && b == 1
a
else
@@ -55,13 +54,9 @@ class Rational < Numeric
num = -num
den = -den
end
- p [:reduce, num, den]
gcd = num.gcd(den)
- p [:div1, num, num.class, gcd]
num = num.div(gcd)
- p [:div2, den, gcd]
den = den.div(gcd)
- p [:gcd=, gcd]
if den == 1 && defined?(Unify)
num
else
@@ -338,7 +333,6 @@ end
class Fixnum
undef quo
def quo(other)
- p [:quo, self, other]
Rational.new!(self,1) / other
end
alias rdiv quo