module HTTParty::ModuleInheritableAttributes

def self.hash_deep_dup(hash)

borrowed from Rails 3.2 ActiveSupport
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

def self.included(base)

:nodoc:
def self.included(base)
  base.extend(ClassMethods)
end