Method: Puppet::Parser::Scope#class_set
- Defined in:
- lib/puppet/parser/scope.rb
#class_set(name, scope) ⇒ Object
Store the fact that we’ve evaluated a class, and store a reference to the scope in which it was evaluated, so that we can look it up later.
405 406 407 408 409 410 411 |
# File 'lib/puppet/parser/scope.rb', line 405 def class_set(name, scope) if parent parent.class_set(name, scope) else @class_scopes[name] = scope end end |