Class | TMail::ContentTypeHeader |
In: |
lib/tmail/header.rb
|
Parent: | StructuredHeader |
PARSE_TYPE | = | :CTYPE |
# File lib/tmail/header.rb, line 788 def []( key ) ensure_parsed @params and unquote(@params[key]) end
# File lib/tmail/header.rb, line 793 def []=( key, val ) ensure_parsed (@params ||= {})[key] = val end
# File lib/tmail/header.rb, line 773 def content_type ensure_parsed @sub ? sprintf('%s/%s', @main, @sub) : @main end
# File lib/tmail/header.rb, line 778 def params ensure_parsed unless @params.blank? @params.each do |k, v| @params[k] = unquote(v) end end @params end