Sha256: eb248128cd2863001237f6b2470181bd2870cdfa67a66fa2f092e1d1a436e0b6
Contents?: true
Size: 724 Bytes
Versions: 4
Compression:
Stored size: 724 Bytes
Contents
# encoding: utf-8 # # # module Mail class ContentLocationField < StructuredField FIELD_NAME = 'content-location' CAPITALIZED_FIELD = 'Content-Location' def initialize(*args) super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last)) self.parse self end def parse(val = value) unless val.blank? @element = Mail::ContentLocationElement.new(val) end end def element @element ||= Mail::ContentLocationElement.new(value) end def location element.location end # TODO: Fix this up def encoded "#{CAPITALIZED_FIELD}: #{location}\r\n" end def decoded location end end end
Version data entries
4 entries across 4 versions & 1 rubygems