Parent

Class/Module Index [+]

Quicksearch

Mail::ContentLocationField

Public Class Methods

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

Public Instance Methods

decoded() click to toggle source
# File lib/mail/fields/content_location_field.rb, line 36
def decoded
  location 
end
element() click to toggle source
# File lib/mail/fields/content_location_field.rb, line 23
def element
  @element ||= Mail::ContentLocationElement.new(value)
end
encoded() click to toggle source

TODO: Fix this up

# File lib/mail/fields/content_location_field.rb, line 32
def encoded
  "#{CAPITALIZED_FIELD}: #{location}\r\n"
end
location() click to toggle source
# File lib/mail/fields/content_location_field.rb, line 27
def location
  element.location
end
parse(val = value) click to toggle source
# File lib/mail/fields/content_location_field.rb, line 17
def parse(val = value)
  unless val.blank?
    @element = Mail::ContentLocationElement.new(val)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.