Method: Puppet::Functions::Function.argument_mismatch

Defined in:
lib/puppet/functions.rb

.argument_mismatch(meth_name, &block) ⇒ Void

Like ‘dispatch` but used for a specific type of argument mismatch. Will not be include in the list of valid parameter overloads for the function.

Parameters:

  • 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.

Returns:

  • (Void)


335
336
337
338
339
# File 'lib/puppet/functions.rb', line 335

def self.argument_mismatch(meth_name, &block)
  builder().instance_eval do
    dispatch(meth_name, true, &block)
  end
end