Class: Dry::Logic::Predicate::Curried
- Inherits:
-
Dry::Logic::Predicate
- Object
- Dry::Logic::Predicate
- Dry::Logic::Predicate::Curried
- Defined in:
- lib/dry/validation.rb
Instance Method Summary collapse
Instance Method Details
#evaluate_args!(schema) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/dry/validation.rb', line 15 def evaluate_args!(schema) @args = args.map { |arg| arg.is_a?(UnboundMethod) ? arg.bind(schema).() : arg } self end |