Sha256: e5d426e4105a9022a71f19d82535560b6f510e25d3432f4ddc7582a7b597acab
Contents?: true
Size: 372 Bytes
Versions: 4
Compression:
Stored size: 372 Bytes
Contents
module Valcro class Runner attr_accessor :validators, :error_list def initialize(error_list = ErrorList.new) @validators = [] @error_list = error_list end def add_validator(validator) @validators << validator end def validate @validators.each do |validator| validator.call error_list end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
valcro-0.1.1 | lib/valcro/runner.rb |
valcro-0.1 | lib/valcro/runner.rb |
valcro-0.0.2 | lib/valcro/runner.rb |
valcro-0.0.1 | lib/valcro/runner.rb |