# File lib/chef/resource.rb, line 339 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