Class: InCSV::Types::Date
- Inherits:
-
ColumnType
- Object
- ColumnType
- InCSV::Types::Date
- Defined in:
- lib/incsv/types/date.rb
Instance Method Summary collapse
Methods inherited from ColumnType
clean_value, #clean_value, for_database, #initialize, name
Constructor Details
This class inherits a constructor from InCSV::ColumnType
Instance Method Details
#match? ⇒ Boolean
4 5 6 |
# File 'lib/incsv/types/date.rb', line 4 def match? value.strip.match(/\A[0-9]{4}-[0-9]{2}-[0-9]{2}\z/) end |