module CsvImportAnalyzer::Helper
Public Instance Methods
null_like?(value)
click to toggle source
To determine if a certain field in the dataset of null type returns a boolean of it’s either null or not
# 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