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 144 def initialize(comment) 145 @comment = comment 146 end
Public Instance Methods
eql?(o)
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 152 def eql?(o) 153 o.is_a?(Comment) && o.comment == @comment 154 end
Also aliased as: ==
hash()
click to toggle source
# File lib/puppet/pops/serialization/extension.rb 148 def hash 149 @comment.hash 150 end