Methods
Constants
| PARSE_TYPE | = | :CDISPOSITION |
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 841
841: def []( key )
842: ensure_parsed
843: @params and @params[key]
844: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 846
846: def []=( key, val )
847: ensure_parsed
848: (@params ||= {})[key] = val
849: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 826
826: def disposition
827: ensure_parsed
828: @disposition
829: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 831
831: def disposition=( str )
832: ensure_parsed
833: @disposition = str.downcase
834: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 836
836: def params
837: ensure_parsed
838: @params
839: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 865
865: def do_accept( strategy )
866: strategy.meta @disposition
867: @params.each do |k,v|
868: strategy.meta ';'
869: strategy.space
870: strategy.kv_pair k, v
871: end
872: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 853
853: def init
854: @disposition = @params = nil
855: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 861
861: def isempty?
862: not @disposition and (not @params or @params.empty?)
863: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 857
857: def set( args )
858: @disposition, @params = *args
859: end