Module: CsvImportAnalyzer::Helper
- Included in:
- CsvCheckBounds, CsvDatatypeAnalysis, CsvSanitizer
- Defined in:
- lib/csv-import-analyzer/helpers/common_functions.rb
Instance Method Summary collapse
-
#null_like?(value) ⇒ Boolean
To determine if a certain field in the dataset of null type returns a boolean of it’s either null or not.
Instance Method Details
#null_like?(value) ⇒ Boolean
To determine if a certain field in the dataset of null type returns a boolean of it’s either null or not
7 8 9 10 11 12 13 |
# File 'lib/csv-import-analyzer/helpers/common_functions.rb', line 7 def null_like?(value) if ["NULL", "Null", "NUll", "NULl", "null", nil, "", "NAN", "\\N"].include?(value) true else false end end |