Class: Checkoff::SelectorClasses::Task::InPortfolioNamedPFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Task::InPortfolioNamedPFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/task.rb
Overview
:in_portfolio_named? function
Constant Summary collapse
- FUNCTION_NAME =
:in_portfolio_named?
Instance Method Summary collapse
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::Task::FunctionEvaluator
Instance Method Details
#evaluate(task, portfolio_name) ⇒ Boolean
323 324 325 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 323 def evaluate(task, portfolio_name) @tasks.in_portfolio_named?(task, portfolio_name) end |
#matches? ⇒ Boolean
315 316 317 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 315 def matches? fn?(selector, FUNCTION_NAME) end |