/tools/Ruby/lib/ruby/1.8/drb/eq.rb

http://github.com/agross/netopenspace · Ruby · 16 lines · 13 code · 3 blank · 0 comment · 3 complexity · e815b12bf569409b1c0a140417386f89 MD5 · raw file

  1. require 'drb/drb'
  2. module DRb
  3. class DRbObject
  4. def ==(other)
  5. return false unless DRbObject === other
  6. (@ref == other.__drbref) && (@uri == other.__drburi)
  7. end
  8. def hash
  9. [@uri, @ref].hash
  10. end
  11. alias eql? ==
  12. end
  13. end