_load(s)
public
Unmarshall a marshalled DRbObject.
If the referenced object is located within the local server, then the
object itself is returned. Otherwise, a new DRbObject is created to act as a stub for the
remote referenced object.
Show source
def self._load(s)
uri, ref = Marshal.load(s)
if DRb.here?(uri)
obj = DRb.to_obj(ref)
if ((! obj.tainted?) && Thread.current[:drb_untaint])
Thread.current[:drb_untaint].push(obj)
end
return obj
end
self.new_with(uri, ref)
end