def to_hash
      methods = instance_variables.map { |i| i.to_s.gsub('@', '') }
      Hash[*methods.map { |m| [m, send(m.to_sym)] }.flatten]
    end
def to_hash
      methods = instance_variables.map { |i| i.to_s.gsub('@', '') }
      Hash[*methods.map { |m| [m, send(m.to_sym)] }.flatten]
    end
Create a new cookbook from the given hash.

 @param [Hash] hash
   the hash from which to create the cookbook
 Dump this cookbook to a hash.

 @return [Hash]
   the hash representation of this cookbook