Method: Ref::WeakReference#object

Defined in:
lib/ref/weak_reference.rb,
lib/ref/weak_reference/weak_ref.rb,
lib/ref/weak_reference/iron_ruby.rb,
lib/ref/weak_reference/pure_ruby.rb

#objectObject

Get the reference object. If the object has already been garbage collected, then this method will return nil.



22
23
24
# File 'lib/ref/weak_reference.rb', line 22

def object
  raise NotImplementedError.new("This is an abstract class; you must require an implementation")
end