class Puppet::Pops::PN::Literal
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/puppet/pops/pn.rb 173 def initialize(value) 174 @value = value 175 end
Public Instance Methods
eql?(o)
click to toggle source
# File lib/puppet/pops/pn.rb 187 def eql?(o) 188 o.is_a?(Literal) && @value == o.value 189 end
format(indent, b)
click to toggle source
# File lib/puppet/pops/pn.rb 177 def format(indent, b) 178 if @value.nil? 179 b << 'nil' 180 elsif value.is_a?(String) 181 double_quote(value, b) 182 else 183 b << value.to_s 184 end 185 end
to_data()
click to toggle source
# File lib/puppet/pops/pn.rb 191 def to_data 192 @value 193 end