chef/lib/chef/resource_collection.rb
# Serialize this object as a hash 
Serialize this object as a hash
Serialize this object as a hash
def to_json(*a)
      instance_vars = Hash.new
      self.instance_variables.each do |iv|
        instance_vars[iv] = self.instance_variable_get(iv)
      end
      results = {
        'json_class' => self.class.name,
        'instance_vars' => instance_vars
      }
      results.to_json(*a)
    end
def to_json ( * a ) instance_vars = Hash . new self . instance_variables . each do | iv | instance_vars [ iv ] = self . instance_variable_get ( iv ) end results = { 'json_class' => self . class . name , 'instance_vars' => instance_vars } results . to_json ( * a ) end
Serialize this object as a hash
Serialize this object as a hash
a
<not_specific>