lib/dry/validation/schema/value.rb in dry-validation-0.2.0 vs lib/dry/validation/schema/value.rb in dry-validation-0.3.0
- old
+ new
@@ -2,14 +2,15 @@
module Validation
class Schema
class Value
include Schema::Definition
- attr_reader :name, :rules
+ attr_reader :name, :rules, :groups
def initialize(name)
@name = name
@rules = []
+ @groups = []
end
def each(&block)
rule = yield(self).to_ary
Schema::Rule.new([:each, [name, rule]])