A case-insensitive Hash class for HTTP header
Methods
Included Modules
Class Public methods
new(hash={})
Link
Source: show
# File lib/xmlrpc/httpserver.rb, line 74 def initialize(hash={}) @hash = hash update(hash) end
Instance Public methods
[](key)
Link
Source: show
# File lib/xmlrpc/httpserver.rb, line 79 def [](key) @hash[key.to_s.capitalize] end
[]=(key, value)
Link
Source: show
# File lib/xmlrpc/httpserver.rb, line 83 def []=(key, value) @hash[key.to_s.capitalize] = value end
each()
Link
Source: show
# File lib/xmlrpc/httpserver.rb, line 92 def each @hash.each {|k,v| yield k.capitalize, v } end