Class: Puppet::Pops::Serialization::Extension::ArrayStart
- 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
- #size ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(size) ⇒ ArrayStart
constructor
A new instance of ArrayStart.
- #sequence_size ⇒ Object
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
#size ⇒ Object (readonly)
83 84 85 |
# File 'lib/puppet/pops/serialization/extension.rb', line 83 def size @size end |
Instance Method Details
#sequence_size ⇒ Object
89 90 91 |
# File 'lib/puppet/pops/serialization/extension.rb', line 89 def sequence_size @size end |