Class: Checkoff::NotFunctionEvaluator

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

Overview

:not 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, subvalue) ⇒ Object



86
87
88
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 86

def evaluate(_task, subvalue)
  !subvalue
end

#matches?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 82

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