Class: TMail::ContentDispositionHeader

Inherits:
StructuredHeader show all
Defined in:
lib/action_mailer/vendor/tmail/header.rb

Constant Summary collapse

PARSE_TYPE =
:CDISPOSITION

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

Methods inherited from StructuredHeader

#comments

Methods inherited from HeaderField

#accept, #body, #body=, #empty?, #illegal?, #initialize, #inspect, internal_new, new, new_from_port, newobj

Methods included from StrategyInterface

#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?

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#[](key) ⇒ Object



820
821
822
823
# File 'lib/action_mailer/vendor/tmail/header.rb', line 820

def []( key )
  ensure_parsed
  @params and @params[key]
end

#[]=(key, val) ⇒ Object



825
826
827
828
# File 'lib/action_mailer/vendor/tmail/header.rb', line 825

def []=( key, val )
  ensure_parsed
  (@params ||= {})[key] = val
end

#dispositionObject



805
806
807
808
# File 'lib/action_mailer/vendor/tmail/header.rb', line 805

def disposition
  ensure_parsed
  @disposition
end

#disposition=(str) ⇒ Object



810
811
812
813
# File 'lib/action_mailer/vendor/tmail/header.rb', line 810

def disposition=( str )
  ensure_parsed
  @disposition = str.downcase
end

#paramsObject



815
816
817
818
# File 'lib/action_mailer/vendor/tmail/header.rb', line 815

def params
  ensure_parsed
  @params
end