Method: Puppet::Pops::Types::TypeFormatter#string_PNotUndefType

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

#string_PNotUndefType(t) ⇒ 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.



443
444
445
446
447
448
449
450
451
452
# File 'lib/puppet/pops/types/type_formatter.rb', line 443

def string_PNotUndefType(t)
  contained_type = t.type
  append_array('NotUndef', contained_type.nil? || contained_type.instance_of?(PAnyType)) do
    if contained_type.is_a?(PStringType) && !contained_type.value.nil?
      append_string(contained_type.value)
    else
      append_string(contained_type)
    end
  end
end