Class: Checkoff::SelectorClasses::Task::TagPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Task::TagPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/task.rb,
sig/checkoff.rbs
Overview
:tag? function
Instance Attribute Summary
Attributes inherited from FunctionEvaluator
#custom_fields, #selector, #tasks, #timelines
Instance Method Summary collapse
-
#evaluate(task, tag_name) ⇒ Boolean
sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project @param
task. -
#evaluate_arg?(_index) ⇒ Boolean
@param
_index. - #matches? ⇒ Boolean
Methods inherited from FunctionEvaluator
Methods inherited from FunctionEvaluator
#debug, #error, #finer, #fn?, #info, #initialize, #log_level, #logger, #warn
Methods included from Logging
#debug, #error, #finer, #info, #log_level, #logger, #warn
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Task::FunctionEvaluator
Instance Method Details
#evaluate(task, tag_name) ⇒ Boolean
sord warn - Asana::Resources::Task wasn't able to be resolved to a constant in this project
@param task
@param tag_name
141 142 143 144 145 146 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 141 def evaluate(task, tag_name) # @type [Array<Asana::Resources::Tag>] = task..to_a tag_names = .map(&:name) tag_names.include?(tag_name) end |
#evaluate_arg?(_index) ⇒ Boolean
@param _index
134 135 136 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 134 def evaluate_arg?(_index) false end |
#matches? ⇒ Boolean
129 130 131 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 129 def matches? fn?(selector, :tag?) end |