Sha256: 516fa2a99b6d2af19d59353963e7ffb02065f0a7e4fb4b2bad9f7743254d7cf0
Contents?: true
Size: 576 Bytes
Versions: 96
Compression:
Stored size: 576 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, "ContentTransferEncodingElement can not parse |#{string}|\nReason was: #{parser.failure_reason}\n" end end def encoding @encoding end end end
Version data entries
96 entries across 66 versions & 5 rubygems