Class TMail::ContentDispositionHeader
In: lib/tmail/header.rb
Parent: StructuredHeader

Methods

[]   []=   disposition   disposition=   params  

Constants

PARSE_TYPE = :CDISPOSITION

Public Instance methods

[Source]

# File lib/tmail/header.rb, line 887
    def []( key )
      ensure_parsed
      @params and unquote(@params[key])
    end

[Source]

# File lib/tmail/header.rb, line 892
    def []=( key, val )
      ensure_parsed
      (@params ||= {})[key] = val
    end

[Source]

# File lib/tmail/header.rb, line 867
    def disposition
      ensure_parsed
      @disposition
    end

[Source]

# File lib/tmail/header.rb, line 872
    def disposition=( str )
      ensure_parsed
      @disposition = str.downcase
    end

[Source]

# File lib/tmail/header.rb, line 877
    def params
      ensure_parsed
      unless @params.blank?
        @params.each do |k, v|
          @params[k] = unquote(v)
        end
      end
      @params
    end

[Validate]