Method: PEROBS::ObjectBase._finalize

Defined in:
lib/perobs/ObjectBase.rb

._finalize(store, id) ⇒ Object

This method generates the destructor for the objects of this class. It is done this way to prevent the Proc object hanging on to a reference to self which would prevent the object from being collected. This internal method is not intended for users to call.



146
147
148
# File 'lib/perobs/ObjectBase.rb', line 146

def ObjectBase._finalize(store, id)
  proc { store._collect(id) }
end