diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-18 15:45:12 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-18 15:45:12 +0000 |
commit | 151f1241c665b0307234e931bec2c32bfea0138d (patch) | |
tree | 6ca5c5e535d66aaf094e954446846955f2e18a88 /lib/drb/eq.rb | |
parent | 34cdb70d14ea1fdddf3f3991f6097fe5c24310ba (diff) | |
download | ruby-151f1241c665b0307234e931bec2c32bfea0138d.tar.gz |
import from drb-2.0.4b3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb/eq.rb')
-rw-r--r-- | lib/drb/eq.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/drb/eq.rb b/lib/drb/eq.rb new file mode 100644 index 0000000000..e24512d6a7 --- /dev/null +++ b/lib/drb/eq.rb @@ -0,0 +1,16 @@ +require 'drb/drb' + +module DRb + class DRbObject + def ==(other) + return false unless DRbObject === other + (@ref == other.__drbref) && (@uri == other.__drburi) + end + + def hash + [@uri, @ref].hash + end + + alias eql? == + end +end |