summaryrefslogtreecommitdiff
path: root/lib/complex.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-22 06:48:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-22 06:48:18 +0000
commit959d5febcf0cdd2f4d81a1bb91bcd8d9fee83f2f (patch)
tree2a3fe02c8a124b8e603ac1e2aa1690dc5c322885 /lib/complex.rb
parentd0129370f07f3fcdcb18b9788161abdbbf230325 (diff)
* class.c (rb_mod_clone): should not copy class name, since clone
should remain anonymous. * eval.c (rb_call0): self in a block given to define_method now be switched to the receiver of the method. * eval.c (proc_invoke): added new parameter to allow self switching. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r--lib/complex.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index f0a363f..77d8859 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -28,7 +28,6 @@
# Complex::conjugate
# Complex::<=>
# Complex::==
-# Complex::to_i
# Complex::to_f
# Complex::to_r
# Complex::to_s
@@ -243,18 +242,6 @@ class Complex < Numeric
end
end
- def to_i
- Complex(@real.to_i, @image.to_i)
- end
-
- def to_f
- Complex(@real.to_f, @image.to_f)
- end
-
- def to_r
- Complex(@real.to_r, @image.to_r)
- end
-
def denominator
@real.denominator.lcm(@image.denominator)
end