Class: Checkoff::ProjectSelectorEvaluator

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

Overview

Evaluates project selectors against a project

Instance Method Summary collapse

Methods inherited from SelectorEvaluator

#evaluate

Constructor Details

#initialize(project:, projects: Checkoff::Projects.new, custom_fields: Checkoff::CustomFields.new) ⇒ ProjectSelectorEvaluator

Returns a new instance of ProjectSelectorEvaluator.

Parameters:



13
14
15
16
17
18
19
20
# File 'lib/checkoff/internal/project_selector_evaluator.rb', line 13

def initialize(project:,
               projects: Checkoff::Projects.new,
               custom_fields: Checkoff::CustomFields.new)
  @item = project
  @projects = projects
  @custom_fields = custom_fields
  super()
end