Sha256: bc9fa3e8a76e2ce6a113bb9e195607414a188260b8d1f8815e9ec1a2bc0bedfd

Contents?: true

Size: 195 Bytes

Versions: 11

Compression:

Stored size: 195 Bytes

Contents

require_relative '../../../lib/csv2hash/extra_validator'

module Csv2Hash
  class DowncaseValidator < ExtraValidator
    def valid? rule, value
      !!(value.match /^[a-z]+$/)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv2hash-0.7.7 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.6 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.5 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.3 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.2 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.1 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.7.0 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.6.8 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.6.7 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.6.6 spec/lib/extra_validators/downcase_validator.rb
csv2hash-0.6.5 spec/lib/extra_validators/downcase_validator.rb