module Puppet::Pops::Serialization::InstanceReader
An InstanceReader
is responsible for reading an instance of a complex object using a deserializer. The read involves creating the instance, register it with the deserializer (so that self references can be resolved) and then read the instance data (which normally amounts to all attribute values). Instance readers are registered with of {Types::PObjectType}s to aid the type when reading instances.
@api private
Public Instance Methods
read(impl_class, value_count, deserializer)
click to toggle source
@param [Class] impl_class the class of the instance to be created and initialized @param [Integer] value_count the expected number of objects that forms the initialization data @param [Deserializer] deserializer the deserializer to read from, and to register the instance with @return [Object] the instance that has been read
# File lib/puppet/pops/serialization/instance_reader.rb 14 def read(impl_class, value_count, deserializer) 15 Serialization.not_implemented(self, 'read') 16 end