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.



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

def initialize
  super({})
end

Instance Attribute Details

#sectionsObject

Returns the value of attribute sections

Returns:

  • (Object)

    the current value of sections



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

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.



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

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