class TMail::MimeVersionHeader
Constants
- PARSE_TYPE
Public Instance Methods
major()
click to toggle source
# File lib/tmail/header.rb, line 703 def major ensure_parsed @major end
major=( arg )
click to toggle source
# File lib/tmail/header.rb, line 708 def major=( arg ) ensure_parsed @major = arg end
minor()
click to toggle source
# File lib/tmail/header.rb, line 713 def minor ensure_parsed @minor end
minor=( arg )
click to toggle source
# File lib/tmail/header.rb, line 718 def minor=( arg ) ensure_parsed @minor = arg end
version()
click to toggle source
# File lib/tmail/header.rb, line 723 def version sprintf('%d.%d', major, minor) end
Private Instance Methods
do_accept( strategy )
click to toggle source
# File lib/tmail/header.rb, line 742 def do_accept( strategy ) strategy.meta sprintf('%d.%d', @major, @minor) end
init()
click to toggle source
# File lib/tmail/header.rb, line 729 def init @major = nil @minor = nil end
isempty?()
click to toggle source
# File lib/tmail/header.rb, line 738 def isempty? not (@major or @minor) end
set( args )
click to toggle source
# File lib/tmail/header.rb, line 734 def set( args ) @major, @minor = *args end