Class: TMail::ContentDispositionHeader

Inherits:
StructuredHeader show all
Defined in:
lib/tmail-pure/header.rb

Constant Summary collapse

PARSE_TYPE =
:CDISPOSITION

Constants inherited from HeaderField

HeaderField::FNAME_TO_CLASS

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

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#[](key) ⇒ Object



822
823
824
825
# File 'lib/tmail-pure/header.rb', line 822

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

#[]=(key, val) ⇒ Object



827
828
829
830
# File 'lib/tmail-pure/header.rb', line 827

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

#dispositionObject



807
808
809
810
# File 'lib/tmail-pure/header.rb', line 807

def disposition
  ensure_parsed
  @disposition
end

#disposition=(str) ⇒ Object



812
813
814
815
# File 'lib/tmail-pure/header.rb', line 812

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

#paramsObject



817
818
819
820
# File 'lib/tmail-pure/header.rb', line 817

def params
  ensure_parsed
  @params
end