class Mail::MimeVersionField
:nodoc:
def self.singular?
def self.singular? true end
def decoded
def decoded version end
def element
def element @element ||= Mail::MimeVersionElement.new(value) end
def encoded
def encoded "#{name}: #{version}\r\n" end
def initialize(value = nil, charset = nil)
def initialize(value = nil, charset = nil) value = '1.0' if Utilities.blank?(value) super value, charset end
def major
def major element.major.to_i end
def minor
def minor element.minor.to_i end
def version
def version "#{element.major}.#{element.minor}" end