Class: Checkoff::NilPFunctionEvaluator

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

Overview

:nil? 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



97
98
99
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 97

def evaluate(_task, subvalue)
  subvalue.nil?
end

#matches?Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 93

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