mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0711cf3cd8
commit
cced56ef7c
6 changed files with 15 additions and 16 deletions
|
@ -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>).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue