Method: Puppet::Pops::Serialization::InstanceReader#read

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

#read(impl_class, value_count, deserializer) ⇒ 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.

Returns the instance that has been read.

Parameters:

  • impl_class (Class)

    the class of the instance to be created and initialized

  • value_count (Integer)

    the expected number of objects that forms the initialization data

  • deserializer (Deserializer)

    the deserializer to read from, and to register the instance with

Returns:

  • (Object)

    the instance that has been read



16
17
18
# File 'lib/puppet/pops/serialization/instance_reader.rb', line 16

def read(impl_class, value_count, deserializer)
  Serialization.not_implemented(self, 'read')
end