PageRenderTime 232ms CodeModel.GetById 31ms app.highlight 2ms RepoModel.GetById 198ms app.codeStats 0ms

/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
 1require 'drb/drb'
 2
 3module 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
16end