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
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Task::FunctionEvaluator
Instance Method Details
#evaluate(task, portfolio_name) ⇒ Boolean
278 279 280 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 278 def evaluate(task, portfolio_name) @tasks.in_portfolio_named?(task, portfolio_name) end |
#matches? ⇒ Boolean
270 271 272 |
# File 'lib/checkoff/internal/selector_classes/task.rb', line 270 def matches? fn?(selector, FUNCTION_NAME) end |