Sha256: 0f2d6e55b16dbd0aee7d9c4a9bb9111d7f509fc8b2a1b6f741e4a65a177ec42f
Contents?: true
Size: 510 Bytes
Versions: 30
Compression:
Stored size: 510 Bytes
Contents
# encoding: utf-8 module Mail class ContentTransferEncodingElement include Mail::Utilities def initialize( string ) parser = Mail::ContentTransferEncodingParser.new if tree = parser.parse(string.downcase) @encoding = tree.encoding.text_value else raise Mail::Field::ParseError, "ContentTransferEncodingElement can not parse |#{string}|\nReason was: #{parser.failure_reason}\n" end end def encoding @encoding end end end
Version data entries
30 entries across 30 versions & 2 rubygems