Module: Csv2hash::Validator::Collection

Includes:
Expectation, Csv2hash::Validator
Defined in:
lib/csv2hash/validator/collection.rb

Instance Method Summary collapse

Methods included from Expectation

#unexpected_line?

Methods included from Csv2hash::Validator

#valid?, #validate_rules

Methods included from Discover

#find_dynamic_position

Instance Method Details

#validate_data!Object



9
10
11
12
13
14
15
# File 'lib/csv2hash/validator/collection.rb', line 9

def validate_data!
  self.data_source.each_with_index do |line, y|
    next if unexpected_line?(line, y)
    validate_rules y
  end
  nil
end