Module: Ruby::Rego::Evaluator::LocalShadowing

Included in:
ComprehensionEvaluator, ExpressionEvaluator
Defined in:
lib/ruby/rego/evaluator/local_shadowing.rb

Overview

Shared local-variable shadowing for comprehension and every bodies. Binds explicitly-declared locals and unification-introduced locals to undefined before the body is evaluated, so an outer binding of the same name does not leak into the scope.