Class: Checkoff::SelectorClasses::Task::InProjectNamedPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Task::InProjectNamedPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/task.rb
Overview
:in_project_named? function
Instance Method Summary collapse
-
#evaluate(task, project_name) ⇒ Boolean
@sg-ignore.
- #evaluate_arg?(_index) ⇒ Boolean
- #matches? ⇒ Boolean
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, project_name) ⇒ Boolean
@sg-ignore
96 97 98 99 100 101 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 96 def evaluate(task, project_name) project_names = task.memberships.map do |membership| membership.fetch('project').fetch('name') end project_names.include? project_name end |
#evaluate_arg?(_index) ⇒ Boolean
88 89 90 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 88 def evaluate_arg?(_index) false end |
#matches? ⇒ Boolean
83 84 85 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 83 def matches? fn?(selector, :in_project_named?) end |