Class: Dry::Logic::Evaluator::Attr
- Inherits:
-
Dry::Logic::Evaluator
- Object
- Dry::Logic::Evaluator
- Dry::Logic::Evaluator::Attr
- Defined in:
- lib/dry/logic/evaluator.rb
Instance Attribute Summary
Attributes inherited from Dry::Logic::Evaluator
Instance Method Summary collapse
- #call(input) ⇒ Object (also: #[])
Methods inherited from Dry::Logic::Evaluator
Constructor Details
This class inherits a constructor from Dry::Logic::Evaluator
Instance Method Details
#call(input) ⇒ Object Also known as: []
37 38 39 |
# File 'lib/dry/logic/evaluator.rb', line 37 def call(input) path.reduce(input) { |a, e| a.public_send(e) } end |