Method: Puppet::Pops::Loader::TypeDefinitionInstantiator.create_from_model

Defined in:
lib/puppet/pops/loader/type_definition_instantiator.rb

.create_from_model(type_definition, loader) ⇒ Object



50
51
52
53
54
55
56
57
58
59
# File 'lib/puppet/pops/loader/type_definition_instantiator.rb', line 50

def self.create_from_model(type_definition, loader)
  typed_name = TypedName.new(:type, type_definition.name)
  type = create_runtime_type(type_definition)
  loader.set_entry(
    typed_name,
    type,
    type_definition.locator.to_uri(type_definition)
  )
  type
end