Parent

Typhoeus::NormalizedHeaderHash

Public Class Methods

new(constructor = {}) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 3
def initialize(constructor = {})
  if constructor.is_a?(Hash)
    super
    update(constructor)
  else
    super(constructor)
  end
end

Public Instance Methods

[](key) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 24
def [](key)
  super(convert_key(key))
end
[]=(key, value) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 28
def []=(key, value)
  super(convert_key(key), value)
end
delete(key) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 49
def delete(key)
  super(convert_key(key))
end
dup() click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 41
def dup
  self.class.new(self)
end
fetch(key, *extras) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 12
def fetch(key, *extras)
  super(convert_key(key), *extras)
end
key?(key) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 16
def key?(key)
  super(convert_key(key))
end
merge(hash) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 45
def merge(hash)
  self.dup.update(hash)
end
merge!(other_hash) click to toggle source
Alias for: update
update(other_hash) click to toggle source
# File lib/typhoeus/normalized_header_hash.rb, line 32
def update(other_hash)
  other_hash.each_pair do |key, value|
    self[convert_key(key)] = value
  end
  self
end
Also aliased as: merge!

[Validate]

Generated with the Darkfish Rdoc Generator 2.