Class: LaunchDarkly::Impl::EvaluatorState

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/impl/evaluator.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_flag) ⇒ EvaluatorState

Returns a new instance of EvaluatorState.

Parameters:

Since:

  • 5.5.0



32
33
34
35
# File 'lib/ldclient-rb/impl/evaluator.rb', line 32

def initialize(original_flag)
  @prereq_stack = EvaluatorStack.new(original_flag.key)
  @segment_stack = EvaluatorStack.new(nil)
end

Instance Attribute Details

#prereq_stackObject (readonly)

Since:

  • 5.5.0



37
38
39
# File 'lib/ldclient-rb/impl/evaluator.rb', line 37

def prereq_stack
  @prereq_stack
end

#segment_stackObject (readonly)

Since:

  • 5.5.0



38
39
40
# File 'lib/ldclient-rb/impl/evaluator.rb', line 38

def segment_stack
  @segment_stack
end