Method: Puppet::Pops::Types::PObjectType#type_parameters

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

#type_parameters(include_parent = false) ⇒ Hash{String=>PTypeParameter}

Returns the type_parameters of this ‘Object` type. If include_parent is `true`, then all inherited type_parameters will be included in the returned `Hash`.

Parameters:

  • include_parent (Boolean) (defaults to: false)

    ‘true` if inherited type_parameters should be included

Returns:



1035
1036
1037
1038
1039
# File 'lib/puppet/pops/types/p_object_type.rb', line 1035

def type_parameters(include_parent = false)
  all = {}
  collect_type_parameters(all, include_parent)
  all
end