Class: Dry::Validation::PredicateRegistry::Unbound
- Inherits:
-
Dry::Validation::PredicateRegistry
- Object
- Dry::Validation::PredicateRegistry
- Dry::Validation::PredicateRegistry::Unbound
- Defined in:
- lib/dry/validation/predicate_registry.rb
Instance Attribute Summary
Attributes inherited from Dry::Validation::PredicateRegistry
Instance Method Summary collapse
Methods inherited from Dry::Validation::PredicateRegistry
[], #[], #arg_list, #ensure_valid_predicate, #initialize, #key?, #new
Constructor Details
This class inherits a constructor from Dry::Validation::PredicateRegistry
Instance Method Details
#bind(schema) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/dry/validation/predicate_registry.rb', line 30 def bind(schema) bound_predicates = predicates.each_with_object({}) do |(n, p), res| res[n] = p.bind(schema) end Bound.new(external, bound_predicates, schema) end |
#update(other) ⇒ Object
37 38 39 40 |
# File 'lib/dry/validation/predicate_registry.rb', line 37 def update(other) predicates.update(other) self end |