Class Rinda::DRbObjectTemplate
In: lib/rinda/rinda.rb
Parent: Object

Documentation?

Methods

===   new  

Public Class methods

Creates a new DRbObjectTemplate that will match against uri and ref.

[Source]

     # File lib/rinda/rinda.rb, line 183
183:     def initialize(uri=nil, ref=nil)
184:       @drb_uri = uri
185:       @drb_ref = ref
186:     end

Public Instance methods

This DRbObjectTemplate matches ro if the remote object‘s drburi and drbref are the same. nil is used as a wildcard.

[Source]

     # File lib/rinda/rinda.rb, line 192
192:     def ===(ro)
193:       return true if super(ro)
194:       unless @drb_uri.nil?
195:         return false unless (@drb_uri === ro.__drburi rescue false)
196:       end
197:       unless @drb_ref.nil?
198:         return false unless (@drb_ref === ro.__drbref rescue false)
199:       end
200:       true
201:     end

[Validate]