Class: Puppet::Parser::Util::Config

Inherits:
Object
  • Object
show all
Includes:
InstanceMethods
Defined in:
lib/puppet/parser/util/erly.rb

Instance Method Summary collapse

Methods included from InstanceMethods

#convert, #indent

Constructor Details

#initialize(value) ⇒ Config

Returns a new instance of Config.



161
162
163
# File 'lib/puppet/parser/util/erly.rb', line 161

def initialize(value)
  @config = convert(value)
end

Instance Method Details

#pp(level = 0) ⇒ Object



169
170
171
# File 'lib/puppet/parser/util/erly.rb', line 169

def pp(level=0)
  @config.pp(level) + "."
end

#to_sObject



165
166
167
# File 'lib/puppet/parser/util/erly.rb', line 165

def to_s
  @config.to_s + "."
end