Module: Csv2hash::Validator::Collection
- Includes:
- Expectation, Csv2hash::Validator
- Defined in:
- lib/csv2hash/validator/collection.rb
Instance Method Summary collapse
Methods included from Expectation
Methods included from Csv2hash::Validator
Methods included from Discover
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 |