Method: Chef::Resource#to_hash
- Defined in:
- lib/chef/resource.rb
#to_hash ⇒ Object
346 347 348 349 350 351 352 353 |
# File 'lib/chef/resource.rb', line 346 def to_hash instance_vars = Hash.new self.instance_variables.each do |iv| key = iv.to_s.sub(/^@/,'').to_sym instance_vars[key] = self.instance_variable_get(iv) unless (key == :run_context) || (key == :node) end instance_vars end |