Hash
# File lib/excon/headers.rb, line 27 def [](key) @downcased[key.to_s.downcase] end
# File lib/excon/headers.rb, line 32 def []=(key, value) raw_writer(key, value) @downcased[key.to_s.downcase] = value end
# File lib/excon/headers.rb, line 38 def assoc(obj) @downcased.assoc(obj.downcase) end
# File lib/excon/headers.rb, line 43 def delete(key, &proc) raw_delete(key, &proc) @downcased.delete(key.to_s.downcase, &proc) end
# File lib/excon/headers.rb, line 48 def fetch(key, default = nil, &proc) if proc @downcased.fetch(key.to_s.downcase, &proc) else @downcased.fetch(key.to_s.downcase, default) end end
# File lib/excon/headers.rb, line 58 def has_key?(key) raw_key?(key) || @downcased.has_key?(key.to_s.downcase) end
# File lib/excon/headers.rb, line 62 def merge(other_hash) self.dup.merge!(other_hash) end
# File lib/excon/headers.rb, line 66 def merge!(other_hash) other_hash.each do |key, value| self[key] = value end raw_merge!(other_hash) end
# File lib/excon/headers.rb, line 73 def rehash @downcased.rehash raw_rehash end
# File lib/excon/headers.rb, line 78 def values_at(*keys) @downcased.values_at(*keys.map {|key| key.to_s.downcase}) end
Generated with the Darkfish Rdoc Generator 2.