Included Modules

Class Index [+]

Quicksearch

Mail::ResentDateField

Constants

FIELD_NAME
CAPITALIZED_FIELD

Public Class Methods

new(value = nil, charset = 'utf-8') click to toggle source
    # File lib/mail/fields/resent_date_field.rb, line 14
14:     def initialize(value = nil, charset = 'utf-8')
15:       self.charset = charset
16:       if value.blank?
17:         value = Time.now.strftime('%a, %d %b %Y %H:%M:%S %z')
18:       else
19:         value = strip_field(FIELD_NAME, value)
20:         value = ::DateTime.parse(value.to_s).strftime('%a, %d %b %Y %H:%M:%S %z')
21:       end
22:       super(CAPITALIZED_FIELD, value, charset)
23:       self
24:     end

Public Instance Methods

decoded() click to toggle source
    # File lib/mail/fields/resent_date_field.rb, line 30
30:     def decoded
31:       do_decode
32:     end
encoded() click to toggle source
    # File lib/mail/fields/resent_date_field.rb, line 26
26:     def encoded
27:       do_encode(CAPITALIZED_FIELD)
28:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.