Parent

Class/Module Index [+]

Quicksearch

Mail::UnstructuredField

Provides access to an unstructured header field

Per RFC 2822:

2.2.1. Unstructured Header Field Bodies

   Some field bodies in this standard are defined simply as
   "unstructured" (which is specified below as any US-ASCII characters,
   except for CR and LF) with no further restrictions.  These are
   referred to as unstructured field bodies.  Semantically, unstructured
   field bodies are simply to be treated as a single line of characters
   with no further processing (except for header "folding" and
   "unfolding" as described in section 2.2.3).

Public Class Methods

new(*args) click to toggle source
# File lib/mail/fields/unstructured_field.rb, line 19
def initialize(*args)
  self.name = args.first
  self.value = args.last
  self
end

Public Instance Methods

decoded() click to toggle source
# File lib/mail/fields/unstructured_field.rb, line 29
def decoded
  do_decode
end
default() click to toggle source
# File lib/mail/fields/unstructured_field.rb, line 33
def default
  decoded
end
encoded() click to toggle source
# File lib/mail/fields/unstructured_field.rb, line 25
def encoded
  do_encode(self.name)
end
parse() click to toggle source
# File lib/mail/fields/unstructured_field.rb, line 37
def parse # An unstructured field does not parse
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.