Sha256: e9bb9c31ccc405038352af28c8b79f9c1e1c5bee474e54073d1e4aa0de1ebcd9
Contents?: true
Size: 353 Bytes
Versions: 15
Compression:
Stored size: 353 Bytes
Contents
module Csv2hash module StructureValidator class MinColumns include Validator def initialize min_size @min_size = min_size end def validate_line line line.size < @min_size end def error_message line "Not enough columns (min. #{@min_size}) on line #{line}" end end end end
Version data entries
15 entries across 15 versions & 1 rubygems