lib/csv2hash/validator/collection.rb in csv2hash-0.4.0 vs lib/csv2hash/validator/collection.rb in csv2hash-0.5.0
- old
+ new
@@ -2,10 +2,10 @@
include Csv2hash::Validator
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?
+ next if self.options.fetch(:ignore_blank_line) and line.compact.empty?
validate_rules y
end
end
protected