Sha256: 0b1c4f95c9de22134ee75a9b4067711a1a437ac01ac9bb00033cfe8e739b3657
Contents?: true
Size: 540 Bytes
Versions: 129
Compression:
Stored size: 540 Bytes
Contents
# encoding: utf-8 module Mail class ContentLocationElement # :nodoc: include Mail::Utilities def initialize( string ) parser = Mail::ContentLocationParser.new if tree = parser.parse(string) @location = tree.location.text_value else raise Mail::Field::ParseError, "ContentLocationElement can not parse |#{string}|\nReason was: #{parser.failure_reason}\n" end end def location @location end def to_s(*args) location.to_s end end end
Version data entries
129 entries across 99 versions & 6 rubygems