Sha256: 3bd5042abd8d70a65d4d975fa0a75f90ab33b811cad5d7656e811a76864a702a
Contents?: true
Size: 543 Bytes
Versions: 126
Compression:
Stored size: 543 Bytes
Contents
# encoding: utf-8 module Mail class ContentTransferEncodingElement include Mail::Utilities def initialize( string ) parser = Mail::ContentTransferEncodingParser.new case when string.blank? @encoding = '' when tree = parser.parse(string.to_s.downcase) @encoding = tree.encoding.text_value else raise Mail::Field::ParseError.new(ContentTransferEncodingElement, string, parser.failure_reason) end end def encoding @encoding end end end
Version data entries
126 entries across 114 versions & 13 rubygems