class Mail::ParameterHash

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.cr

Instance Method Summary

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

[View source]
def decoded #

[View source]
def encoded #

[View source]