Class: Checkoff::SelectorClasses::Task::InARealProjectPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Task::InARealProjectPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/task.rb
Overview
:in_a_real_project? function
Instance Method Summary collapse
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
24 25 26 27 28 29 30 31 32 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 24 def evaluate(task) # @type [Hash{'unwrapped' => Hash}] task_data = @tasks.task_to_h(task) # @type [Hash{'membership_by_project_name' => Hash}] unwrapped = task_data.fetch('unwrapped') # @type [Array] projects = unwrapped.fetch('membership_by_project_name').keys !(projects - [:my_tasks]).empty? end |
#evaluate_arg?(_index) ⇒ Boolean
17 18 19 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 17 def evaluate_arg?(_index) false end |
#matches? ⇒ Boolean
12 13 14 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 12 def matches? fn?(selector, :in_a_real_project?) end |