Methods
Constants
| PARSE_TYPE | = | :CTYPE |
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 726
726: def []( key )
727: ensure_parsed
728: @params and @params[key]
729: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 731
731: def []=( key, val )
732: ensure_parsed
733: (@params ||= {})[key] = val
734: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 716
716: def content_type
717: ensure_parsed
718: @sub ? sprintf('%s/%s', @main, @sub) : @main
719: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 696
696: def main_type
697: ensure_parsed
698: @main
699: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 701
701: def main_type=( arg )
702: ensure_parsed
703: @main = arg.downcase
704: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 721
721: def params
722: ensure_parsed
723: @params
724: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 706
706: def sub_type
707: ensure_parsed
708: @sub
709: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 711
711: def sub_type=( arg )
712: ensure_parsed
713: @sub = arg.downcase
714: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 750
750: def do_accept( strategy )
751: if @sub
752: strategy.meta sprintf('%s/%s', @main, @sub)
753: else
754: strategy.meta @main
755: end
756: @params.each do |k,v|
757: strategy.meta ';'
758: strategy.space
759: strategy.kv_pair k, v
760: end
761: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 738
738: def init
739: @main = @sub = @params = nil
740: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 746
746: def isempty?
747: not (@main or @sub)
748: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 742
742: def set( args )
743: @main, @sub, @params = *args
744: end