Methods
Constants
PARSE_TYPE = :CTYPE
Public Instance methods
[]( key )
     # File lib/action_mailer/vendor/tmail/header.rb, line 745
745:     def []( key )
746:       ensure_parsed
747:       @params and @params[key]
748:     end
[]=( key, val )
     # File lib/action_mailer/vendor/tmail/header.rb, line 750
750:     def []=( key, val )
751:       ensure_parsed
752:       (@params ||= {})[key] = val
753:     end
content_type()
     # File lib/action_mailer/vendor/tmail/header.rb, line 735
735:     def content_type
736:       ensure_parsed
737:       @sub ? sprintf('%s/%s', @main, @sub) : @main
738:     end
main_type()
     # File lib/action_mailer/vendor/tmail/header.rb, line 715
715:     def main_type
716:       ensure_parsed
717:       @main
718:     end
main_type=( arg )
     # File lib/action_mailer/vendor/tmail/header.rb, line 720
720:     def main_type=( arg )
721:       ensure_parsed
722:       @main = arg.downcase
723:     end
params()
     # File lib/action_mailer/vendor/tmail/header.rb, line 740
740:     def params
741:       ensure_parsed
742:       @params
743:     end
sub_type()
     # File lib/action_mailer/vendor/tmail/header.rb, line 725
725:     def sub_type
726:       ensure_parsed
727:       @sub
728:     end
sub_type=( arg )
     # File lib/action_mailer/vendor/tmail/header.rb, line 730
730:     def sub_type=( arg )
731:       ensure_parsed
732:       @sub = arg.downcase
733:     end
Private Instance methods
do_accept( strategy )
     # File lib/action_mailer/vendor/tmail/header.rb, line 769
769:     def do_accept( strategy )
770:       if @sub
771:         strategy.meta sprintf('%s/%s', @main, @sub)
772:       else
773:         strategy.meta @main
774:       end
775:       @params.each do |k,v|
776:         if v
777:           strategy.meta ';'
778:           strategy.space
779:           strategy.kv_pair k, v
780:         end
781:       end
782:     end
init()
     # File lib/action_mailer/vendor/tmail/header.rb, line 757
757:     def init
758:       @main = @sub = @params = nil
759:     end
isempty?()
     # File lib/action_mailer/vendor/tmail/header.rb, line 765
765:     def isempty?
766:       not (@main or @sub)
767:     end
set( args )
     # File lib/action_mailer/vendor/tmail/header.rb, line 761
761:     def set( args )
762:       @main, @sub, @params = *args
763:     end