Sha256: a3d84873784bdab7c1f2acb3160ab1b988dd6554238fecd57ca784a74500950f
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
# frozen_string_literal: true module AAMVA class Validator def initialize(standard) @standard = standard end def valid?(data_element, value) info = @standard.data_element(data_element) value.match?(Regexp.new(info['regexp'])) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aamva-0.2.0 | lib/aamva/validator.rb |