Puppet Function: type_of

Defined in:
lib/puppet/functions/type_of.rb
Function type:
Ruby 4.x API

Summary

DEPRECATED. Use the namespaced function [`stdlib::type_of`](#stdlibtype_of) instead.

Overview

type_of(Any *$args)Any

Parameters:

  • *args (Any)

Returns:

  • (Any)


6
7
8
9
10
11
12
13
14
# File 'lib/puppet/functions/type_of.rb', line 6

Puppet::Functions.create_function(:type_of) do
  dispatch :deprecation_gen do
    repeated_param 'Any', :args
  end
  def deprecation_gen(*args)
    call_function('deprecation', 'type_of', 'This function is deprecated, please use stdlib::type_of instead.', false)
    call_function('stdlib::type_of', *args)
  end
end