summaryrefslogtreecommitdiff
path: root/ruby_1_8_5/lib/drb/eq.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_1_8_5/lib/drb/eq.rb')
-rw-r--r--ruby_1_8_5/lib/drb/eq.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/ruby_1_8_5/lib/drb/eq.rb b/ruby_1_8_5/lib/drb/eq.rb
new file mode 100644
index 0000000000..e24512d6a7
--- /dev/null
+++ b/ruby_1_8_5/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