__getobj__()
public
Return the object this WeakRef references.
Raises RefError if the object has been
garbage collected. The object returned is the object to which method calls
are delegated (see Delegator).
Show source
def __getobj__
unless @@id_rev_map[self.__id__] == @__id
raise RefError, "Illegal Reference - probably recycled", caller(2)
end
begin
ObjectSpace._id2ref(@__id)
rescue RangeError
raise RefError, "Illegal Reference - probably recycled", caller(2)
end
end