Mail::ParameterHash
Inherits Hash < Iterable < Enumerable < Reference < Object
ParameterHash is an intelligent Hash that allows you to add parameter values including the MIME extension paramaters that have the name0="blah", name1="bleh" keys, and will just return a single key called name="blahbleh" and do any required un-encoding to make that happen
Parameters are defined in RFC2045. Split keys are in RFC2231.
Instance methods
[](key_name)
Returns the value for the key given by key.
If not found, returns the default value given by Hash.new, otherwise raises KeyError.
h = {"foo" => "bar"}
h["foo"] # => "bar"
h = Hash(String, String).new("bar")
h["foo"] # => "bar"
h = Hash(String, String).new { "bar" }
h["foo"] # => "bar"
h = Hash(String, String).new
h["foo"] # raises KeyError
decoded
Sourceencoded
Source