Class: Puppet::Settings::ValuesFromSection
- Defined in:
- lib/puppet/settings.rb
Instance Method Summary collapse
- #include?(name) ⇒ Boolean
-
#initialize(name, section) ⇒ ValuesFromSection
constructor
A new instance of ValuesFromSection.
- #lookup(name) ⇒ Object
Constructor Details
#initialize(name, section) ⇒ ValuesFromSection
Returns a new instance of ValuesFromSection.
1401 1402 1403 1404 |
# File 'lib/puppet/settings.rb', line 1401 def initialize(name, section) @name = name @section = section end |
Instance Method Details
#include?(name) ⇒ Boolean
1406 1407 1408 |
# File 'lib/puppet/settings.rb', line 1406 def include?(name) !@section.setting(name).nil? end |
#lookup(name) ⇒ Object
1410 1411 1412 1413 1414 1415 |
# File 'lib/puppet/settings.rb', line 1410 def lookup(name) setting = @section.setting(name) if setting setting.value end end |