Puppet Function: to_json
- Defined in:
-
lib/puppet/functions/to_json.rb
- Function type:
- Ruby 4.x API
Summary
DEPRECATED. Use the namespaced function [`stdlib::to_json`](#stdlibto_json) instead.
Overview
to_json(Any *$args) ⇒ Any
6
7
8
9
10
11
12
13
14
|
# File 'lib/puppet/functions/to_json.rb', line 6
Puppet::Functions.create_function(:to_json) do
dispatch :deprecation_gen do
repeated_param 'Any', :args
end
def deprecation_gen(*args)
call_function('deprecation', 'to_json', 'This function is deprecated, please use stdlib::to_json instead.', false)
call_function('stdlib::to_json', *args)
end
end
|