Parent

Class/Module Index [+]

Quicksearch

Mail::ContentLocationField

Public Class Methods

new(*args) click to toggle source
# File lib/mail/fields/content_location_field.rb, line 10
def initialize(*args)
  super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last))
  self.parse
  self

end

Public Instance Methods

decoded() click to toggle source
# File lib/mail/fields/content_location_field.rb, line 36
def decoded
  value
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}: #{value}\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.