class Puppet::Pops::Serialization::Extension::PcoreObjectStart
The class that triggers the use of the PCORE_OBJECT_START extension. The payload is the name of the object type and the number of attributes in the instance.
Attributes
attribute_count[R]
type_name[R]
Public Class Methods
new(type_name, attribute_count)
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 101 def initialize(type_name, attribute_count) 102 @type_name = type_name 103 @attribute_count = attribute_count 104 end
Public Instance Methods
eql?(o)
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 110 def eql?(o) 111 o.is_a?(PcoreObjectStart) && o.type_name == @type_name && o.attribute_count == @attribute_count 112 end
Also aliased as: ==
hash()
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 106 def hash 107 @type_name.hash * 29 + attribute_count.hash 108 end
sequence_size()
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 115 def sequence_size 116 @attribute_count 117 end