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.
18 19 20 21 22 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 18 def initialize(expression:, env:, bound_vars:) @expression = expression @env = env @bound_vars = bound_vars end |
Instance Attribute Details
#bound_vars ⇒ Array<String> (readonly)
31 32 33 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 31 def bound_vars @bound_vars end |
#env ⇒ Environment (readonly)
28 29 30 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 28 def env @env end |
#expression ⇒ Object (readonly)
25 26 27 |
# File 'lib/ruby/rego/evaluator/rule_evaluator.rb', line 25 def expression @expression end |