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