Class: TMail::MimeVersionHeader

Inherits:
StructuredHeader show all
Defined in:
lib/tmail-pure/header.rb

Constant Summary collapse

PARSE_TYPE =
:MIMEVERSION

Constants inherited from HeaderField

HeaderField::FNAME_TO_CLASS

Instance Method Summary collapse

Methods inherited from StructuredHeader

#comments

Methods inherited from HeaderField

#accept, #body, #body=, #empty?, #illegal?, #initialize, #inspect, internal_new, new, new_from_port, newobj

Methods included from StrategyInterface

#accept_strategy, create_dest, #decoded, #encoded

Constructor Details

This class inherits a constructor from TMail::HeaderField

Instance Method Details

#majorObject



648
649
650
651
# File 'lib/tmail-pure/header.rb', line 648

def major
  ensure_parsed
  @major
end

#major=(arg) ⇒ Object



653
654
655
656
# File 'lib/tmail-pure/header.rb', line 653

def major=(arg)
  ensure_parsed
  @major = arg
end

#minorObject



658
659
660
661
# File 'lib/tmail-pure/header.rb', line 658

def minor
  ensure_parsed
  @minor
end

#minor=(arg) ⇒ Object



663
664
665
666
# File 'lib/tmail-pure/header.rb', line 663

def minor=(arg)
  ensure_parsed
  @minor = arg
end

#versionObject



668
669
670
# File 'lib/tmail-pure/header.rb', line 668

def version
  sprintf('%d.%d', major, minor)
end