class Puppet::Pops::Serialization::Extension::Comment

The class that triggers the use of the COMMENT extension. The payload is comment text

Attributes

comment[R]

Public Class Methods

new(comment) click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
143 def initialize(comment)
144   @comment = comment
145 end

Public Instance Methods

==(o)
Alias for: eql?
eql?(o) click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
151 def eql?(o)
152   o.is_a?(Comment) && o.comment == @comment
153 end
Also aliased as: ==
hash() click to toggle source
    # File lib/puppet/pops/serialization/extension.rb
147 def hash
148   @comment.hash
149 end