Class: Puppet::Pops::Serialization::Extension::ArrayStart

Inherits:
Object
  • Object
show all
Includes:
NotTabulated, SequenceStart
Defined in:
lib/puppet/pops/serialization/extension.rb

Overview

The class that triggers the use of the ARRAY_START extension. The payload is the array size

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size) ⇒ ArrayStart

Returns a new instance of ArrayStart.



79
80
81
# File 'lib/puppet/pops/serialization/extension.rb', line 79

def initialize(size)
  @size = size
end

Instance Attribute Details

#sizeObject (readonly)



78
79
80
# File 'lib/puppet/pops/serialization/extension.rb', line 78

def size
  @size
end

Instance Method Details

#sequence_sizeObject



83
84
85
# File 'lib/puppet/pops/serialization/extension.rb', line 83

def sequence_size
  @size
end