Method: Puppet::Pops::Types::PAnyType#new_function

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

#new_functionFunction

Create an instance of this type. The default implementation will just dispatch the call to the class method with the same name and pass ‘self` as the first argument.

Returns:

  • (Function)

    the created function



328
329
330
# File 'lib/puppet/pops/types/types.rb', line 328

def new_function
  self.class.new_function(self)
end