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
100 def initialize(type_name, attribute_count)
101   @type_name = type_name
102   @attribute_count = attribute_count
103 end

Public Instance Methods

==(o)
Alias for: eql?
eql?(o) click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
109 def eql?(o)
110   o.is_a?(PcoreObjectStart) && o.type_name == @type_name && o.attribute_count == @attribute_count
111 end
Also aliased as: ==
hash() click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
105 def hash
106   @type_name.hash * 29 + attribute_count.hash
107 end
sequence_size() click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
114 def sequence_size
115   @attribute_count
116 end