Parent

Included Modules

Class/Module Index [+]

Quicksearch

Mail::ResentDateField

Public Class Methods

new(*args) click to toggle source
# File lib/mail/fields/resent_date_field.rb, line 11
def initialize(*args)
  if args.last.blank?
    self.name = CAPITALIZED_FIELD
    self.value = Time.now.strftime('%a, %d %b %Y %H:%M:%S %z')
    self
  else
    value = strip_field(FIELD_NAME, args.last)
    value = ::DateTime.parse(value.to_s).strftime('%a, %d %b %Y %H:%M:%S %z')
    super(CAPITALIZED_FIELD, value)
  end
end

Public Instance Methods

decoded() click to toggle source
# File lib/mail/fields/resent_date_field.rb, line 27
def decoded
  do_decode
end
encoded() click to toggle source
# File lib/mail/fields/resent_date_field.rb, line 23
def encoded
  do_encode(CAPITALIZED_FIELD)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.