Sha256: 7e43bbfaa1de36ef95040ce422c670d87a5b16ed09f8b39da817ab64c97978c2
Contents?: true
Size: 724 Bytes
Versions: 15
Compression:
Stored size: 724 Bytes
Contents
# encoding: utf-8 # # # module Mail class ContentTransferEncodingField < StructuredField FIELD_NAME = 'content-transfer-encoding' CAPITALIZED_FIELD = 'Content-Transfer-Encoding' def initialize(*args) super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last.to_s.downcase)) end def tree @element ||= ContentTransferEncodingElement.new(value) @tree ||= @element.tree end def element @element ||= ContentTransferEncodingElement.new(value) end def encoding element.encoding end # TODO: Fix this up def encoded "#{CAPITALIZED_FIELD}: #{value}\r\n" end def decoded value end end end
Version data entries
15 entries across 15 versions & 1 rubygems