Sha256: a1ab77cbf4a8530a26d0e5e67564782edd008118ecd5104dd00e5867aa96f6bf

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 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.options.fetch(:ignore_blank_line) and line.compact.empty?
      validate_rules y
    end
  end

  protected

  def position _position
    [nil, _position]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csv2hash-0.5.0 lib/csv2hash/validator/collection.rb