Sha256: b06252499ae62ad3092c4d9bce5adf269b30a81ea9e685859019687a14058f55

Contents?: true

Size: 351 Bytes

Versions: 6

Compression:

Stored size: 351 Bytes

Contents

module Csv2hash::Validator::Collection
  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?
      validate_rules y
    end
  end

  protected

  def position _position
    [nil, _position]
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
csv2hash-0.4.0 lib/csv2hash/validator/collection.rb
csv2hash-0.3.0 lib/csv2hash/validator/collection.rb
csv2hash-0.2.1 lib/csv2hash/validator/collection.rb
csv2hash-0.2.0 lib/csv2hash/validator/collection.rb
csv2hash-0.1.1 lib/csv2hash/validator/collection.rb
csv2hash-0.1 lib/csv2hash/validator/collection.rb