Method: Puppet::Parser::Scope#inherited_scope

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

#inherited_scopePuppet::Parser::Scope

The class scope of the inherited thing of this scope’s resource.

Returns:



566
567
568
569
570
571
572
# File 'lib/puppet/parser/scope.rb', line 566

def inherited_scope
  if resource && resource.type == TYPENAME_CLASS && !resource.resource_type.parent.nil?
    qualified_scope(resource.resource_type.parent)
  else
    nil
  end
end