Class Index [+]

Quicksearch

Mail::ContentLocationField

Constants

FIELD_NAME
CAPITALIZED_FIELD

Public Class Methods

new(value = nil, charset = 'utf-8') click to toggle source
    # File lib/mail/fields/content_location_field.rb, line 11
11:     def initialize(value = nil, charset = 'utf-8')
12:       self.charset = charset
13:       super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, value), charset)
14:       self.parse
15:       self
16:     end

Public Instance Methods

decoded() click to toggle source
    # File lib/mail/fields/content_location_field.rb, line 37
37:     def decoded
38:       location 
39:     end
element() click to toggle source
    # File lib/mail/fields/content_location_field.rb, line 24
24:     def element
25:       @element ||= Mail::ContentLocationElement.new(value)
26:     end
encoded() click to toggle source

TODO: Fix this up

    # File lib/mail/fields/content_location_field.rb, line 33
33:     def encoded
34:       "#{CAPITALIZED_FIELD}: #{location}\r\n"
35:     end
location() click to toggle source
    # File lib/mail/fields/content_location_field.rb, line 28
28:     def location
29:       element.location
30:     end
parse(val = value) click to toggle source
    # File lib/mail/fields/content_location_field.rb, line 18
18:     def parse(val = value)
19:       unless val.blank?
20:         @element = Mail::ContentLocationElement.new(val)
21:       end
22:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.