Method: Puppet::Pops::Types::TypeFactory.type_reference

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

.type_reference(type_string = nil) ⇒ PTypeReferenceType

Returns the type that represents a type reference with a given name and optional parameters.

Parameters:

  • type_string (String) (defaults to: nil)

    the string form of the type

Returns:



619
620
621
# File 'lib/puppet/pops/types/type_factory.rb', line 619

def self.type_reference(type_string = nil)
  type_string == nil ? PTypeReferenceType::DEFAULT : PTypeReferenceType.new(type_string)
end