Module: Csv2hash::Validator::Collection
- Includes:
- Csv2hash::Validator
- Defined in:
- lib/csv2hash/validator/collection.rb
Instance Method Summary collapse
Methods included from Csv2hash::Validator
Instance Method Details
#validate_data! ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/csv2hash/validator/collection.rb', line 4 def validate_data! self.data_source.each_with_index do |line, y| next if y < definition.header_size next if self.ignore_blank_line and line.compact.empty? validate_rules y end end |