class Mail::ParameterHash
- Mail::ParameterHash
- Hash(String, String)
- Reference
- Object
Overview
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.
Defined in:
mail/fields/parameter_hash.crInstance Method Summary
-
#[](key_name)
Returns the value for the key given by key.
- #decoded
- #encoded
Instance Method Detail
def [](key_name)
#
Description copied from class Hash(String, String)
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