source:
extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/drb/eq.rb@
18425
Last change on this file since 18425 was 18425, checked in by , 15 years ago | |
---|---|
File size: 253 bytes |
Line | |
---|---|
1 | require 'drb/drb' |
2 | |
3 | module DRb |
4 | class DRbObject |
5 | def ==(other) |
6 | return false unless DRbObject === other |
7 | (@ref == other.__drbref) && (@uri == other.__drburi) |
8 | end |
9 | |
10 | def hash |
11 | [@uri, @ref].hash |
12 | end |
13 | |
14 | alias eql? == |
15 | end |
16 | end |
Note:
See TracBrowser
for help on using the repository browser.