Method: Puppet::Parser::Scope#call_function
- Defined in:
- lib/puppet/parser/scope.rb
#call_function(func_name, args, &block) ⇒ Object
Calls a 3.x or 4.x function by name with arguments given in an array using the 4.x calling convention and returns the result. Note that it is the caller’s responsibility to rescue the given ArgumentError and provide location information to aid the user find the problem. The problem is otherwise reported against the source location that invoked the function that ultimately called this method.
1115 1116 1117 |
# File 'lib/puppet/parser/scope.rb', line 1115 def call_function(func_name, args, &block) Puppet::Pops::Parser::EvaluatingParser.new.evaluator.external_call_function(func_name, args, self, &block) end |