module HTTParty::ModuleInheritableAttributes
def self.hash_deep_dup(hash)
def self.hash_deep_dup(hash) duplicate = hash.dup duplicate.each_pair do |key, value| if value.is_a?(Hash) duplicate[key] = hash_deep_dup(value) elsif value.is_a?(Proc) duplicate[key] = value.dup else duplicate[key] = value end end duplicate end