Method: Puppet::Pops::Loader::TypeDefinitionInstantiator.named_definition
- Defined in:
- lib/puppet/pops/loader/type_definition_instantiator.rb
.named_definition(te) ⇒ 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.
93 94 95 96 97 |
# File 'lib/puppet/pops/loader/type_definition_instantiator.rb', line 93 def self.named_definition(te) return 'Object' if te.is_a?(Model::LiteralHash) te.is_a?(Model::AccessExpression) && (left = te.left_expr).is_a?(Model::QualifiedReference) ? left.cased_value : nil end |