Class: Bolt::PAL::YamlPlan::CodeLiteral
- Inherits:
-
EvaluableString
- Object
- EvaluableString
- Bolt::PAL::YamlPlan::CodeLiteral
- Defined in:
- lib/bolt/pal/yaml_plan.rb
Overview
This represents a literal snippet of Puppet code
Instance Attribute Summary
Attributes inherited from EvaluableString
Instance Method Summary collapse
Methods inherited from EvaluableString
Constructor Details
This class inherits a constructor from Bolt::PAL::YamlPlan::EvaluableString
Instance Method Details
#evaluate(scope, evaluator) ⇒ Object
144 145 146 147 148 149 150 |
# File 'lib/bolt/pal/yaml_plan.rb', line 144 def evaluate(scope, evaluator) parse_result = evaluator.parse_string(@value) scope.with_local_scope({}) do evaluator.evaluate(scope, parse_result) end end |