lib/csv2hash/validator/collection.rb in csv2hash-0.0.2 vs lib/csv2hash/validator/collection.rb in csv2hash-0.1

- old
+ new

@@ -1,17 +1,18 @@ -module Validator::Collection - include Validator +module Csv2hash::Validator::Collection + include Csv2hash::Validator def validate_data! - @data_source.each_with_index do |line, y| + 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 protected def position _position [nil, _position] end -end \ No newline at end of file +end