Sha256: 58d76fa542508a97706cb643e6b6cc2abee2044f46cf1e3aae5f7fbd2fa06c45

Contents?: true

Size: 283 Bytes

Versions: 6

Compression:

Stored size: 283 Bytes

Contents

module Topographer::Importer::Helpers
  require_relative 'helpers/write_log_to_csv'

  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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
topographer-0.0.7 lib/topographer/importer/helpers.rb
topographer-0.0.6 lib/topographer/importer/helpers.rb
topographer-0.0.5 lib/topographer/importer/helpers.rb
topographer-0.0.4 lib/topographer/importer/helpers.rb
topographer-0.0.3 lib/Topographer/importer/helpers.rb
topographer-0.0.2 lib/Topographer/importer/helpers.rb