class TMail::ContentDispositionHeader
Constants
- PARSE_TYPE
Public Instance Methods
[]( key )
click to toggle source
# File lib/tmail/header.rb, line 889 def []( key ) ensure_parsed @params and unquote(@params[key]) end
[]=( key, val )
click to toggle source
# File lib/tmail/header.rb, line 894 def []=( key, val ) ensure_parsed (@params ||= {})[key] = val end
disposition()
click to toggle source
# File lib/tmail/header.rb, line 869 def disposition ensure_parsed @disposition end
disposition=( str )
click to toggle source
# File lib/tmail/header.rb, line 874 def disposition=( str ) ensure_parsed @disposition = str.downcase end
params()
click to toggle source
# File lib/tmail/header.rb, line 879 def params ensure_parsed unless @params.blank? @params.each do |k, v| @params[k] = unquote(v) end end @params end
Private Instance Methods
do_accept( strategy )
click to toggle source
# File lib/tmail/header.rb, line 913 def do_accept( strategy ) strategy.meta @disposition @params.each do |k,v| strategy.meta ';' strategy.space strategy.kv_pair k, unquote(v) end end
init()
click to toggle source
# File lib/tmail/header.rb, line 901 def init @disposition = @params = nil end
isempty?()
click to toggle source
# File lib/tmail/header.rb, line 909 def isempty? not @disposition and (not @params or @params.empty?) end
set( args )
click to toggle source
# File lib/tmail/header.rb, line 905 def set( args ) @disposition, @params = *args end