Sha256: 198512040c5c6ccc6a42b73a785c62f0d5f7580af853a776ef4ab956be9b0e1d
Contents?: true
Size: 636 Bytes
Versions: 10
Compression:
Stored size: 636 Bytes
Contents
module Valigator module CSV module RowValidators class Ragged attr_reader :options def initialize(options = {}) @options = options end def valid?(row) return true unless fields row.size >= fields.size end def error_type 'ragged_row' end def error_message 'Ragged or empty row' end def ==(other) self.class == other.class && options == other.options end private def fields options[:fields] end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems