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.
272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/puppet/type.rb', line 272 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 true end end end end |