Method: Puppet::Type.handle_param_options
- Defined in:
- lib/vendor/puppet/type.rb
.handle_param_options(name, options) ⇒ Object
Deal with any options passed into parameters.
154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/vendor/puppet/type.rb', line 154 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 |