Class: InCSV::Types::String

Inherits:
ColumnType show all
Defined in:
lib/incsv/types/string.rb

Overview

Represents a String, stored in the database as a VARCHAR(255). This is the fallback datatype, used for anything that doesn't match any of the other more specific types. Its matching logic is therefore simple: it matches anything. For this reason it must be matched last; this is achieved via require order.

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

Returns:

  • (Boolean)

9
10
11
# File 'lib/incsv/types/string.rb', line 9

def match?
  true
end