Sha256: 912c6d4c28c4505de71366a29f045952f7b614982592697e39460556269ac70c

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

module Csv2hash
  class Configuration
    attr_accessor :true_values
    attr_accessor :false_values
    attr_accessor :nil_values
    # attr_accessor :extra_values
    attr_accessor :convert

    def initialize
      self.convert = false
      self.true_values  = ['yes','y','t']
      self.false_values = ['no','n','f']
      self.nil_values   = ['nil','null']
      # self.extra_values = {} # { [] => }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
csv2hash-0.7.3 lib/csv2hash/configuration.rb
csv2hash-0.7.2 lib/csv2hash/configuration.rb
csv2hash-0.7.1 lib/csv2hash/configuration.rb
csv2hash-0.7.0 lib/csv2hash/configuration.rb
csv2hash-0.6.8 lib/csv2hash/configuration.rb
csv2hash-0.6.7 lib/csv2hash/configuration.rb
csv2hash-0.6.6 lib/csv2hash/configuration.rb
csv2hash-0.6.5 lib/csv2hash/configuration.rb