Method: Puppet::Parser::Scope#with_global_scope

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

#with_global_scope {|global_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.

Execute given block in global scope with no ephemerals present

Yield Parameters:

  • global_scope (Scope)

    the global and ephemeral less scope



946
947
948
# File 'lib/puppet/parser/scope.rb', line 946

def with_global_scope(&block)
  find_global_scope.without_ephemeral_scopes(&block)
end