Class: Checkoff::DuePFunctionEvaluator

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

Overview

:due 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) ⇒ Object



123
124
125
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 123

def evaluate(task)
  @tasks.task_ready?(task)
end

#matches?Boolean

Returns:

  • (Boolean)


119
120
121
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 119

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