class TMail::EncryptedHeader

Constants

PARSE_TYPE

Public Instance Methods

encrypter() click to toggle source
# File lib/tmail/header.rb, line 651
def encrypter
  ensure_parsed
  @encrypter
end
encrypter=( arg ) click to toggle source
# File lib/tmail/header.rb, line 656
def encrypter=( arg )
  ensure_parsed
  @encrypter = arg
end
keyword() click to toggle source
# File lib/tmail/header.rb, line 661
def keyword
  ensure_parsed
  @keyword
end
keyword=( arg ) click to toggle source
# File lib/tmail/header.rb, line 666
def keyword=( arg )
  ensure_parsed
  @keyword = arg
end

Private Instance Methods

do_accept( strategy ) click to toggle source
# File lib/tmail/header.rb, line 686
def do_accept( strategy )
  if @key
    strategy.meta @encrypter + ','
    strategy.space
    strategy.meta @keyword
  else
    strategy.meta @encrypter
  end
end
init() click to toggle source
# File lib/tmail/header.rb, line 673
def init
  @encrypter = nil
  @keyword = nil
end
isempty?() click to toggle source
# File lib/tmail/header.rb, line 682
def isempty?
  not (@encrypter or @keyword)
end
set( args ) click to toggle source
# File lib/tmail/header.rb, line 678
def set( args )
  @encrypter, @keyword = args
end