Method: Mail::CommonDate::InstanceMethods#parse
- Defined in:
- lib/mail/fields/common/common_date.rb
#parse(val = value) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/mail/fields/common/common_date.rb', line 16 def parse(val = value) unless val.blank? @element = Mail::DateTimeElement.new(val) @tree = @element.tree else nil end end |