Sha256: bdc9a54d0a336b53847f834284923ecd7f7a365173475a5b37fbb9b4465ac52c

Contents?: true

Size: 428 Bytes

Versions: 11

Compression:

Stored size: 428 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
        nil
      end

      protected

      def position _position
        [nil, _position]
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv2hash-0.7.7 lib/csv2hash/validator/collection.rb
csv2hash-0.7.6 lib/csv2hash/validator/collection.rb
csv2hash-0.7.5 lib/csv2hash/validator/collection.rb
csv2hash-0.7.3 lib/csv2hash/validator/collection.rb
csv2hash-0.7.2 lib/csv2hash/validator/collection.rb
csv2hash-0.7.1 lib/csv2hash/validator/collection.rb
csv2hash-0.7.0 lib/csv2hash/validator/collection.rb
csv2hash-0.6.8 lib/csv2hash/validator/collection.rb
csv2hash-0.6.7 lib/csv2hash/validator/collection.rb
csv2hash-0.6.6 lib/csv2hash/validator/collection.rb
csv2hash-0.6.5 lib/csv2hash/validator/collection.rb