class Mechanize::Headers
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/mechanize/headers.rb, line 2 def [](key) super(key.downcase) end
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/mechanize/headers.rb, line 6 def []=(key, value) super(key.downcase, value) end
canonical_each() { |key, value| ... }
click to toggle source
# File lib/mechanize/headers.rb, line 14 def canonical_each block_given? or return enum_for(__method__) each { |key, value| key = key.capitalize key.gsub!(/-([a-z])/) { "-#{$1.upcase}" } yield [key, value] } end
key?(key)
click to toggle source
Calls superclass method
# File lib/mechanize/headers.rb, line 10 def key?(key) super(key.downcase) end