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


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

def initialize(size)
  @size = size
end

Instance Attribute Details

#sizeObject (readonly)


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

def size
  @size
end

Instance Method Details

#sequence_sizeObject


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

def sequence_size
  @size
end