Module: Topographer::Importer::Helpers
- Defined in:
- lib/topographer/importer/helpers.rb
Defined Under Namespace
Classes: WriteLogToCSV
Instance Method Summary collapse
Instance Method Details
#boolify(word) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/topographer/importer/helpers.rb', line 4 def boolify(word) return nil if word.nil? case word.downcase when 'yes' true when 'no' false when 'true' true when 'false' false end end |