Method: Ref::Reference#object

Defined in:
lib/ref/reference.rb

#objectObject

Get the referenced object. This could be nil if the reference is a WeakReference or a SoftReference and the object has been reclaimed by the garbage collector.

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/ref/reference.rb', line 15

def object
  raise NotImplementedError
end