Method: PuppetLint::Configuration.add_option
- Defined in:
- lib/puppet-lint/configuration.rb
.add_option(option) ⇒ Object
Public: Add an option to the PuppetLint::Configuration object from outside the class.
option - The String name of the option.
Returns nothing.
Signature
<option>
<option>=(value)
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/puppet-lint/configuration.rb', line 88 def self.add_option(option) # Public: Set the value of the named option. # # value - The value to set the option to. # # Returns nothing. define_method("#{option}=") do |value| settings[option] = value end # Public: Get the value of the named option. # # Returns the value of the option. define_method(option) do settings[option] end end |