Module: Csv2hash::Expectation

Included in:
Parser::Collection, Validator::Collection
Defined in:
lib/csv2hash/expectation.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) unexpected_line?(line, y)

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/csv2hash/expectation.rb', line 4

def unexpected_line? line, y
  return true if y < definition.header_size
  return true if self.options.fetch(:ignore_blank_line){false} and line.compact.empty?
end