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.
1379 1380 1381 1382 |
# File 'lib/puppet/settings.rb', line 1379 def initialize(name, section) @name = name @section = section end |
Instance Method Details
#include?(name) ⇒ Boolean
1384 1385 1386 |
# File 'lib/puppet/settings.rb', line 1384 def include?(name) !@section.setting(name).nil? end |
#lookup(name) ⇒ Object
1388 1389 1390 1391 1392 1393 |
# File 'lib/puppet/settings.rb', line 1388 def lookup(name) setting = @section.setting(name) if setting setting.value end end |