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.
1328 1329 1330 1331 |
# File 'lib/puppet/settings.rb', line 1328 def initialize(name, section) @name = name @section = section end |
Instance Method Details
#include?(name) ⇒ Boolean
1333 1334 1335 |
# File 'lib/puppet/settings.rb', line 1333 def include?(name) !@section.setting(name).nil? end |
#lookup(name) ⇒ Object
1337 1338 1339 1340 1341 1342 |
# File 'lib/puppet/settings.rb', line 1337 def lookup(name) setting = @section.setting(name) if setting setting.value end end |