diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-30 04:50:04 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-30 04:50:04 +0000 |
| commit | a07a26c9ac8f232907fc48d44970d7de7c6726c8 (patch) | |
| tree | df55d54a7eb8949709cdeaadaa52b98c60e117a1 /lib | |
| parent | 290ec14a835d150a7405e845e7c1c91715c58033 (diff) | |
| download | ruby-a07a26c9ac8f232907fc48d44970d7de7c6726c8.tar.gz ruby-a07a26c9ac8f232907fc48d44970d7de7c6726c8.tar.xz ruby-a07a26c9ac8f232907fc48d44970d7de7c6726c8.zip | |
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
expression. [ruby-dev:27868]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/complex.rb | 9 | ||||
| -rw-r--r-- | lib/drb/drb.rb | 2 | ||||
| -rw-r--r-- | lib/xmlrpc/datetime.rb | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/lib/complex.rb b/lib/complex.rb index 9300f391e..110a28ee7 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>). diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 689416ac7..4c4690950 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -1549,7 +1549,7 @@ module DRb end ary.collect(&@obj)[0] else - @obj.__send__(@msg_id, *@argv) + @obj.funcall(@msg_id, *@argv) end end diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb index 298263fe8..f66ef8963 100644 --- a/lib/xmlrpc/datetime.rb +++ b/lib/xmlrpc/datetime.rb @@ -127,7 +127,7 @@ class DateTime end def ==(o) - Array(self) == Array(o) + self.to_a == Array(o) rescue false end end |
