Class: Checkoff::AndFunctionEvaluator

Inherits:
FunctionEvaluator show all
Defined in:
lib/checkoff/internal/task_selector_evaluator.rb

Overview

:and function

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#evaluate_arg?, #initialize

Constructor Details

This class inherits a constructor from Checkoff::FunctionEvaluator

Instance Method Details

#evaluate(_task, lhs, rhs) ⇒ Object



75
76
77
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 75

def evaluate(_task, lhs, rhs)
  lhs && rhs
end

#matches?Boolean

Returns:

  • (Boolean)


71
72
73
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 71

def matches?
  fn?(task_selector, :and)
end