Class: Ruby::Rego::Evaluator::RuleEvaluator::ModifierContext
- Inherits:
-
Object
- Object
- Ruby::Rego::Evaluator::RuleEvaluator::ModifierContext
- Defined in:
- lib/ruby/rego/evaluator/rule_evaluator.rb
Overview
Bundles modifier evaluation state.
Instance Attribute Summary collapse
-
#bound_vars ⇒ Array<String>
readonly
-
#env ⇒ Environment
readonly
-
#expression ⇒ Object
readonly
Instance Method Summary collapse
-
#initialize(expression:, env:, bound_vars:) ⇒ ModifierContext
constructor
A new instance of ModifierContext.
Constructor Details
#initialize(expression:, env:, bound_vars:) ⇒ ModifierContext
Returns a new instance of ModifierContext.
20 21 22 23 24 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 20 def initialize(expression:, env:, bound_vars:) @expression = expression @env = env @bound_vars = bound_vars end |
Instance Attribute Details
#bound_vars ⇒ Array<String> (readonly)
33 34 35 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 33 def bound_vars @bound_vars end |
#env ⇒ Environment (readonly)
30 31 32 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 30 def env @env end |
#expression ⇒ Object (readonly)
27 28 29 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 27 def expression @expression end |