Class: Puppet::Type
- Inherits:
-
Object
- Object
- Puppet::Type
- Defined in:
- lib/shadow_puppet/test.rb
Instance Method Summary collapse
-
#method_missing(name, *args) ⇒ Object
This allows access to resource options as methods on the resource.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
This allows access to resource options as methods on the resource.
10 11 12 13 14 |
# File 'lib/shadow_puppet/test.rb', line 10 def method_missing name, *args if parameters.keys.include? name.to_sym parameters[name.to_sym].value end end |