summaryrefslogtreecommitdiff
path: root/lib/complex.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-30 04:50:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-30 04:50:04 +0000
commitcced56ef7c45d74fb1593e18f7137c144d8b8b44 (patch)
treedf55d54a7eb8949709cdeaadaa52b98c60e117a1 /lib/complex.rb
parent0711cf3cd8f890de7ba4cfb5936d6849a5f2d948 (diff)
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
expression. [ruby-dev:27868] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r--lib/complex.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index 9300f391e8..110a28ee7e 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -305,13 +305,8 @@ class Complex < Numeric
Complex(@real, -@image)
end
alias conj conjugate
-
- #
- # Compares the absolute values of the two numbers.
- #
- def <=> (other)
- self.abs <=> other.abs
- end
+
+ undef <=>
#
# Test for numerical equality (<tt>a == a + 0<i>i</i></tt>).