Class: Checkoff::SelectorClasses::Common::FunctionEvaluator

Inherits:
FunctionEvaluator show all
Defined in:
lib/checkoff/internal/selector_classes/common/function_evaluator.rb,
sig/checkoff.rbs

Overview

Base class to evaluate a project selector function given fully evaluated arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#debug, #error, #evaluate, #evaluate_arg?, #finer, #fn?, #info, #log_level, #logger, #matches?, #warn

Methods included from Logging

#debug, #error, #finer, #info, #log_level, #logger, #warn

Constructor Details

#initialize(selector:, custom_fields:, **_kwargs) ⇒ FunctionEvaluator

@param selector

@param custom_fields

@param _kwargs

Parameters:

  • selector: ([Symbol, ::Array[untyped]], String)
  • custom_fields: (Checkoff::CustomFields)
  • _kwargs (::Hash[untyped, untyped])


14
15
16
17
18
# File 'lib/checkoff/internal/selector_classes/common/function_evaluator.rb', line 14

def initialize(selector:, custom_fields:, **_kwargs)
  @selector = selector
  @custom_fields = custom_fields
  super()
end

Instance Attribute Details

#selectorArray(Symbol, Array), String (readonly)

Returns:

  • (Array(Symbol, Array), String)


23
24
25
# File 'lib/checkoff/internal/selector_classes/common/function_evaluator.rb', line 23

def selector
  @selector
end