Puppet Function: ordered_json

Defined in:
puppet/modules/wmflib/lib/puppet/parser/functions/ordered_json.rb
Function type:
Ruby 3.x API

Overview

ordered_json()Any

Returns:

  • (Any)


33
34
35
# File 'puppet/modules/wmflib/lib/puppet/parser/functions/ordered_json.rb', line 33

newfunction(:ordered_json, :type => :rvalue, :arity => -2) do |args|
  ordered_json(args.reduce(&:merge))
end