Class: Dry::Logic::Evaluator::Attr

Inherits:
Dry::Logic::Evaluator show all
Defined in:
lib/dry/logic/evaluator.rb

Instance Attribute Summary

Attributes inherited from Dry::Logic::Evaluator

#path

Instance Method Summary collapse

Methods inherited from Dry::Logic::Evaluator

#initialize

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