Sha256: b3f3df053b38db9373dabcf35aa5d8c78b93cb32f0577f7f78d2586985dea051

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

require_relative '../expectation'

module Csv2hash
  module Validator
    module Collection
      include Validator
      include Expectation

      def validate_data!
        self.data_source.each_with_index do |line, y|
          next if unexpected_line?(line, y)
          validate_rules y
        end
      end

      protected

      def position _position
        [nil, _position]
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
csv2hash-0.6.4 lib/csv2hash/validator/collection.rb
csv2hash-0.6.3 lib/csv2hash/validator/collection.rb
csv2hash-0.6.2 lib/csv2hash/validator/collection.rb
csv2hash-0.6.1 lib/csv2hash/validator/collection.rb
csv2hash-0.6.0 lib/csv2hash/validator/collection.rb