Method: PEROBS::ObjectBase#_stash
- Defined in:
- lib/perobs/ObjectBase.rb
#_stash(level) ⇒ Object
Save the object state for this transaction level to the storage back-end. The object gets a new ID that is stored in @_stash_map to map the stash ID back to the original data.
238 239 240 241 242 |
# File 'lib/perobs/ObjectBase.rb', line 238 def _stash(level) @_stash_map ||= ::Array.new # Get a new ID to store this version of the object. @_stash_map[level] = _serialize end |