class Dry::Logic::Evaluator::Set

Attributes

evaluators[R]

Public Class Methods

new(paths) click to toggle source
Calls superclass method
# File lib/dry/logic/evaluator.rb, line 17
def self.new(paths)
  super(paths.map { |path| Evaluator::Key.new(path) })
end
new(evaluators) click to toggle source
# File lib/dry/logic/evaluator.rb, line 21
def initialize(evaluators)
  @evaluators = evaluators
end

Public Instance Methods

[](input)
Alias for: call
call(input) click to toggle source
# File lib/dry/logic/evaluator.rb, line 25
def call(input)
  evaluators.map { |evaluator| evaluator[input] }
end
Also aliased as: []