Method: Chef::ResourceDefinition#method_missing

Defined in:
lib/chef/resource_definition.rb

#method_missing(symbol, *args) ⇒ Object

When we do the resource definition, we’re really just setting new values for the paramaters we prototyped at the top. This method missing is as simple as it gets.



59
60
61
# File 'lib/chef/resource_definition.rb', line 59

def method_missing(symbol, *args)
  @params[symbol] = args.length == 1 ? args[0] : args
end