Puppet::Functions.create_function(:is_absolute_path, Puppet::Functions::InternalFunction) do dispatch :deprecation_gen do scope_param optional_repeated_param 'Any', :args end def deprecation_gen(scope, *args) call_function('deprecation', 'is_absolute_path', "This method is deprecated, please use match expressions with Stdlib::Compat::Absolute_Path instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions.") scope.send("function_is_absolute_path", args) end end