Method: Puppet::Pops::Serialization::Deserializer#remember

Defined in:
lib/puppet/pops/serialization/deserializer.rb

#remember(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Remember that a value has been read. This means that the value is given an index and that subsequent reads of a tabulation with that index should return the value.

Parameters:

  • value (Object)

    The value to remember

Returns:



74
75
76
77
# File 'lib/puppet/pops/serialization/deserializer.rb', line 74

def remember(value)
  @read << value
  value
end