class Mail::ResentDateField
Constants
- CAPITALIZED_FIELD
- FIELD_NAME
Public Class Methods
new(value = nil, charset = 'utf-8')
click to toggle source
Calls superclass method
# File lib/mail/fields/resent_date_field.rb, line 13 def initialize(value = nil, charset = 'utf-8') self.charset = charset if value.blank? value = ::DateTime.now.strftime('%a, %d %b %Y %H:%M:%S %z') else value = strip_field(FIELD_NAME, value) value = ::DateTime.parse(value.to_s).strftime('%a, %d %b %Y %H:%M:%S %z') end super(CAPITALIZED_FIELD, value, charset) self end
Public Instance Methods
decoded()
click to toggle source
# File lib/mail/fields/resent_date_field.rb, line 29 def decoded do_decode end
encoded()
click to toggle source
# File lib/mail/fields/resent_date_field.rb, line 25 def encoded do_encode(CAPITALIZED_FIELD) end