Module: Csv2hash

Defined in:
lib/csv2hash.rb,
lib/csv2hash/cell.rb,
lib/csv2hash/errors.rb,
lib/csv2hash/parser.rb,
lib/csv2hash/railtie.rb,
lib/csv2hash/version.rb,
lib/csv2hash/discover.rb,
lib/csv2hash/notifier.rb,
lib/csv2hash/registry.rb,
lib/csv2hash/csv_array.rb,
lib/csv2hash/validator.rb,
lib/csv2hash/definition.rb,
lib/csv2hash/expectation.rb,
lib/csv2hash/yaml_loader.rb,
lib/csv2hash/data_wrapper.rb,
lib/csv2hash/adapters/base.rb,
lib/csv2hash/configuration.rb,
lib/csv2hash/parser/mapping.rb,
lib/csv2hash/extra_validator.rb,
lib/csv2hash/adapters/abstract.rb,
lib/csv2hash/parser/collection.rb,
lib/csv2hash/validator/mapping.rb,
lib/csv2hash/structure_validator.rb,
lib/csv2hash/adapters/csv_adapter.rb,
lib/csv2hash/validator/collection.rb,
lib/csv2hash/coercers/type_coercer.rb,
lib/csv2hash/coercers/yaml_coercer.rb,
lib/csv2hash/adapters/memory_adapter.rb,
lib/csv2hash/structure_validator/deprecation.rb,
lib/csv2hash/structure_validator/max_columns.rb,
lib/csv2hash/structure_validator/min_columns.rb,
lib/generators/csv2hash/install/install_generator.rb

Defined Under Namespace

Modules: Adapter, Coercers, Discover, Expectation, Generators, Parser, StructureValidator, Validator Classes: Cell, Configuration, CsvArray, DataWrapper, Definition, ExtraValidator, InvalidFile, Main, Notifier, Railtie, Registry, TypeCoercer, YamlLoader

Constant Summary collapse

VERSION =
'0.7.7'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



39
40
41
# File 'lib/csv2hash.rb', line 39

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



47
48
49
# File 'lib/csv2hash.rb', line 47

def self.configure
  yield(configuration)
end

.resetObject



43
44
45
# File 'lib/csv2hash.rb', line 43

def self.reset
  @configuration = Configuration.new
end