Method: Puppet::Type.handle_param_options
- Defined in:
- lib/puppet/type.rb
.handle_param_options(name, options) ⇒ void
This method returns an undefined value.
Processes the options for a named parameter.
270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/puppet/type.rb', line 270 def self.(name, ) # If it's a boolean parameter, create a method to test the value easily if [:boolean] define_method(name.to_s + "?") do val = self[name] if val == :true or val == true return true end end end end |