__getobj__() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

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
Register or log in to add new notes.