This class is the base class for all Puppet 4x Function API functions. A specialized class is created for each puppet function.
@api public
@api private
# File lib/puppet/functions.rb, line 255 def self.builder @type_parser ||= Puppet::Pops::Types::TypeParser.new @all_callables ||= Puppet::Pops::Types::TypeFactory.all_callables DispatcherBuilder.new(dispatcher, @type_parser, @all_callables) end
Dispatch any calls that match the signature to the provided method name.
@param meth_name [Symbol] The name of the implementation method to call
when the signature defined in the block matches the arguments to a call to the function.
@return [Void]
@api public
# File lib/puppet/functions.rb, line 269 def self.dispatch(meth_name, &block) builder().instance_eval do dispatch(meth_name, &block) end end