Class: Checkoff::SelectorClasses::Section::HasTasksPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Section::HasTasksPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/section.rb
Overview
:has_tasks? function
Constant Summary collapse
- FUNCTION_NAME =
:has_tasks?
Instance Method Summary collapse
-
#evaluate(section) ⇒ Boolean
@sg-ignore.
- #matches? ⇒ Boolean
Methods inherited from FunctionEvaluator
Methods inherited from FunctionEvaluator
Methods included from Logging
#debug, #error, #finer, #info, #logger, #warn
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Section::FunctionEvaluator
Instance Method Details
#evaluate(section) ⇒ Boolean
@sg-ignore
43 44 45 |
# File 'lib/checkoff/internal/selector_classes/section.rb', line 43 def evaluate(section) @sections.tasks_by_section_gid(section.gid).any? end |
#matches? ⇒ Boolean
35 36 37 |
# File 'lib/checkoff/internal/selector_classes/section.rb', line 35 def matches? fn?(selector, FUNCTION_NAME) end |