Methods
Constants
| PARSE_TYPE | = | :CDISPOSITION |
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 820
820: def []( key )
821: ensure_parsed
822: @params and @params[key]
823: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 825
825: def []=( key, val )
826: ensure_parsed
827: (@params ||= {})[key] = val
828: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 805
805: def disposition
806: ensure_parsed
807: @disposition
808: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 810
810: def disposition=( str )
811: ensure_parsed
812: @disposition = str.downcase
813: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 815
815: def params
816: ensure_parsed
817: @params
818: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 844
844: def do_accept( strategy )
845: strategy.meta @disposition
846: @params.each do |k,v|
847: strategy.meta ';'
848: strategy.space
849: strategy.kv_pair k, v
850: end
851: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 832
832: def init
833: @disposition = @params = nil
834: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 840
840: def isempty?
841: not @disposition and (not @params or @params.empty?)
842: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 836
836: def set( args )
837: @disposition, @params = *args
838: end