method
__getobj__
__getobj__()
public
Hide source
# File lib/weakref.rb, line 63 def __getobj__ # :nodoc: unless @@id_rev_map[self.object_id] == @__id Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2) end begin ObjectSpace._id2ref(@__id) rescue RangeError Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2) end end