Method: Puppet::Parser::Scope::ParameterScope#evaluate

Defined in:
lib/puppet/parser/scope.rb

#evaluate(name, expression, scope, evaluator) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



205
206
207
208
209
210
211
212
213
# File 'lib/puppet/parser/scope.rb', line 205

def evaluate(name, expression, scope, evaluator)
  scope.with_guarded_scope do
    bad = catch(:unevaluated_parameter) do
      scope.new_match_scope(nil)
      return as_read_only { evaluator.evaluate(expression, scope) }
    end
    parameter_reference_failure(name, bad)
  end
end