Class: TMail::ContentTypeHeader
Constant Summary
collapse
- PARSE_TYPE =
:CTYPE
Constants inherited
from HeaderField
HeaderField::FNAME_TO_CLASS
Constants included
from TextUtils
TextUtils::ATOM_UNSAFE, TextUtils::CONTROL_CHAR, TextUtils::MESSAGE_ID, TextUtils::MIME_ENCODED, TextUtils::MONTH, TextUtils::NKF_FLAGS, TextUtils::PHRASE_UNSAFE, TextUtils::RFC2231_ENCODED, TextUtils::TOKEN_UNSAFE, TextUtils::WDAY, TextUtils::ZONESTR_TABLE
Instance Method Summary
collapse
#comments
Methods inherited from HeaderField
#accept, #body, #body=, #empty?, #illegal?, #initialize, #inspect, internal_new, new, new_from_port, newobj
#accept_strategy, create_dest, #decoded, #encoded
Methods included from TextUtils
#atom_safe?, #decode_RFC2231, #decode_params, #join_domain, #message_id?, #mime_encoded?, #quote_atom, #quote_phrase, #quote_token, #time2str, #timezone_string_to_unixtime, #to_kcode, #token_safe?
Instance Method Details
#[](key) ⇒ Object
726
727
728
729
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 726
def []( key )
ensure_parsed
@params and @params[key]
end
|
#[]=(key, val) ⇒ Object
731
732
733
734
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 731
def []=( key, val )
ensure_parsed
(@params ||= {})[key] = val
end
|
#content_type ⇒ Object
716
717
718
719
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 716
def content_type
ensure_parsed
@sub ? sprintf('%s/%s', @main, @sub) : @main
end
|
#main_type ⇒ Object
696
697
698
699
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 696
def main_type
ensure_parsed
@main
end
|
#main_type=(arg) ⇒ Object
701
702
703
704
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 701
def main_type=( arg )
ensure_parsed
@main = arg.downcase
end
|
#params ⇒ Object
721
722
723
724
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 721
def params
ensure_parsed
@params
end
|
#sub_type ⇒ Object
706
707
708
709
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 706
def sub_type
ensure_parsed
@sub
end
|
#sub_type=(arg) ⇒ Object
711
712
713
714
|
# File 'lib/action_mailer/vendor/tmail/header.rb', line 711
def sub_type=( arg )
ensure_parsed
@sub = arg.downcase
end
|