Class: Puppet::Settings::ConfigFile::Conf Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/puppet/settings/config_file.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConf

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Conf


46
47
48
# File 'lib/puppet/settings/config_file.rb', line 46

def initialize
  super({})
end

Instance Attribute Details

#sectionsObject

Returns the value of attribute sections


45
46
47
# File 'lib/puppet/settings/config_file.rb', line 45

def sections
  @sections
end

Instance Method Details

#with_section(section) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


50
51
52
53
# File 'lib/puppet/settings/config_file.rb', line 50

def with_section(section)
  sections[section.name] = section
  self
end