Class: Puppet::Pops::Types::PObjectType::PTypeParameter

Inherits:
PAttribute show all
Defined in:
lib/puppet/pops/types/p_object_type.rb

Constant Summary

Constants included from Annotatable

Annotatable::TYPE_ANNOTATIONS

Instance Attribute Summary

Attributes inherited from PAttribute

#kind

Attributes inherited from PAnnotatedMember

#container, #name, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PAttribute

#callable_type, #constant?, #default_value?, #eql?, #initialize, #value, #value?

Methods inherited from PAnnotatedMember

#==, #accept, #assert_can_be_overridden, #assert_override, #constant?, #create_dispatch, #eql?, #feature_type, #final?, #hash, #initialize, #invoke, #label, label, #override?

Methods included from InvocableMember

#invoke

Methods included from Annotatable

#annotatable_accept, #annotations, #init_annotatable

Constructor Details

This class inherits a constructor from Puppet::Pops::Types::PObjectType::PAttribute

Class Method Details

.feature_typeObject

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.


376
377
378
# File 'lib/puppet/pops/types/p_object_type.rb', line 376

def self.feature_type
  'type_parameter'
end

Instance Method Details

#_pcore_init_hashHash{String=>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.

Returns the hash

Returns:

  • (Hash{String=>Object})

    the hash


368
369
370
371
372
373
# File 'lib/puppet/pops/types/p_object_type.rb', line 368

def _pcore_init_hash
  hash = super
  hash[KEY_TYPE] = hash[KEY_TYPE].type
  hash.delete(KEY_VALUE) if hash.include?(KEY_VALUE) && hash[KEY_VALUE].nil?
  hash
end