Class: Checkoff::SelectorClasses::Task::DueDateSetPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Task::DueDateSetPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/task.rb
Overview
:due_date_set? function
Constant Summary collapse
- FUNCTION_NAME =
:due_date_set?
Instance Method Summary collapse
-
#evaluate(task) ⇒ Boolean
@sg-ignore.
- #matches? ⇒ Boolean
Methods inherited from FunctionEvaluator
Methods inherited from FunctionEvaluator
Methods included from Logging
#debug, #error, #finer, #info, #logger, #warn
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Task::FunctionEvaluator
Instance Method Details
#evaluate(task) ⇒ Boolean
@sg-ignore
212 213 214 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 212 def evaluate(task) !task.due_at.nil? || !task.due_on.nil? end |
#matches? ⇒ Boolean
205 206 207 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 205 def matches? fn?(selector, FUNCTION_NAME) end |