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.



85
86
87
# File 'lib/puppet/pops/serialization/extension.rb', line 85

def initialize(size)
  @size = size
end

Instance Attribute Details

#sizeObject (readonly)



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

def size
  @size
end

Instance Method Details

#sequence_sizeObject



89
90
91
# File 'lib/puppet/pops/serialization/extension.rb', line 89

def sequence_size
  @size
end