Class: Checkoff::DueDateSetPFunctionEvaluator

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

Overview

:due_date_set 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



134
135
136
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 134

def evaluate(task)
  !task.due_at.nil? || !task.due_on.nil?
end

#matches?Boolean

Returns:

  • (Boolean)


130
131
132
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 130

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