class Postal::HeaderSet
Public Class Methods
new(headers)
click to toggle source
# File lib/postal/header_set.rb, line 4 def initialize(headers) @headers = headers end
Public Instance Methods
[](name)
click to toggle source
# File lib/postal/header_set.rb, line 8 def [](name) @headers[name.to_s.downcase] end
has_key?(key)
click to toggle source
# File lib/postal/header_set.rb, line 12 def has_key?(key) @headers.has_key?(name.to_s.downcase) end
method_missing(*args, &block)
click to toggle source
# File lib/postal/header_set.rb, line 16 def method_missing(*args, &block) @headers.send(*args, &block) end