Method: Puppet::Pops::Types::PNotUndefType#new_function

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

#new_functionObject

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.



582
583
584
585
586
587
588
589
# File 'lib/puppet/pops/types/types.rb', line 582

def new_function
  # If only NotUndef, then use Unit's null converter
  if type.nil?
    PUnitType.new_function(self)
  else
    type.new_function
  end
end