Class: Puppet::Settings::ConfigFile::Conf Private
- 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
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
-
#initialize ⇒ Conf
constructor
private
A new instance of Conf.
- #with_section(section) ⇒ Object private
Constructor Details
#initialize ⇒ Conf
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
#sections ⇒ Object
Returns the value of attribute 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 |