Method: Puppet::Parser::Scope#with_parameter_scope
- Defined in:
- lib/puppet/parser/scope.rb
#with_parameter_scope(callee_name, param_names) {|param_scope| ... } ⇒ 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.
Nests a parameter scope
981 982 983 984 985 986 987 |
# File 'lib/puppet/parser/scope.rb', line 981 def with_parameter_scope(callee_name, param_names) param_scope = ParameterScope.new(@ephemeral.last, callee_name, param_names) with_guarded_scope do @ephemeral.push(param_scope) yield(param_scope) end end |