# 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
Generated with the Darkfish Rdoc Generator 2.