Methods
Constants
| PARSE_TYPE | = | :MIMEVERSION |
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 646
646: def major
647: ensure_parsed
648: @major
649: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 651
651: def major=( arg )
652: ensure_parsed
653: @major = arg
654: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 656
656: def minor
657: ensure_parsed
658: @minor
659: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 661
661: def minor=( arg )
662: ensure_parsed
663: @minor = arg
664: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 666
666: def version
667: sprintf('%d.%d', major, minor)
668: end
Private Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 685
685: def do_accept( strategy )
686: strategy.meta sprintf('%d.%d', @major, @minor)
687: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 672
672: def init
673: @major = nil
674: @minor = nil
675: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 681
681: def isempty?
682: not (@major or @minor)
683: end
[ show source ]
# File lib/action_mailer/vendor/tmail/header.rb, line 677
677: def set( args )
678: @major, @minor = *args
679: end