Class: Date
Class Method Summary collapse
Class Method Details
.importex_value(str) ⇒ Object
40 41 42 43 44 |
# File 'lib/importex/core_ext/importex_value.rb', line 40 def self.importex_value(str) Date.parse(str) unless str.blank? rescue ArgumentError raise Importex::InvalidCell, "Not a date." end |