Sha256: 3fd93d7a00156742369e42be2e6585f7c31f964d558c603fe10df530f3fa1759
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
module XSignature class SignatureMultiValidator attr_accessor :validators def initialize(*validators) @validators = validators.flatten end def valid?(data) validators.any? { |validator| validator.valid?(data) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
x-signature-0.1.1 | lib/x-signature/signature_multi_validator.rb |
x-signature-0.1.0 | lib/x-signature/signature_multi_validator.rb |