Class: Dry::Schema::PredicateRegistry Private
- Inherits:
-
Types::PredicateRegistry
- Object
- Types::PredicateRegistry
- Dry::Schema::PredicateRegistry
- Defined in:
- lib/dry/schema/predicate_registry.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A registry with predicate objects from `Dry::Logic::Predicates`
Instance Method Summary collapse
Instance Method Details
#arg_list(name, *values) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 |
# File 'lib/dry/schema/predicate_registry.rb', line 13 def arg_list(name, *values) predicate = self[name] predicate .parameters .map(&:last) .zip(values + Array.new(predicate.arity - values.size, Undefined)) end |