Method: Puppet::Pops::Types::TypedModelObject.create_ptype

Defined in:
lib/puppet/pops/types/types.rb

.create_ptype(loader, ir, parent_name, attributes_hash = EMPTY_HASH) ⇒ Object



53
54
55
# File 'lib/puppet/pops/types/types.rb', line 53

def self.create_ptype(loader, ir, parent_name, attributes_hash = EMPTY_HASH)
  @type = Pcore.create_object_type(loader, ir, self, "Pcore::#{simple_name}Type", "Pcore::#{parent_name}", attributes_hash)
end