Class: Checkoff::TaskSelectorEvaluator

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

Overview

Evaluates task selectors against a task

Instance Method Summary collapse

Methods inherited from SelectorEvaluator

#evaluate

Constructor Details

#initialize(task:, tasks: Checkoff::Tasks.new, timelines: Checkoff::Timelines.new, custom_fields: Checkoff::CustomFields.new) ⇒ TaskSelectorEvaluator

Returns a new instance of TaskSelectorEvaluator.

Parameters:



14
15
16
17
18
19
20
21
22
23
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 14

def initialize(task:,
               tasks: Checkoff::Tasks.new,
               timelines: Checkoff::Timelines.new,
               custom_fields: Checkoff::CustomFields.new)
  @item = task
  @tasks = tasks
  @timelines = timelines
  @custom_fields = custom_fields
  super()
end