Puppet Function: wmflib::encode_www_form
- Defined in:
-
modules/wmflib/lib/puppet/functions/wmflib/encode_www_form.rb
- Function type:
- Ruby 4.x API
Summary
Convert a hash or form parameters into a uri encoded string
Overview
wmflib::encode_www_form(Hash $object) ⇒ Any
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'modules/wmflib/lib/puppet/functions/wmflib/encode_www_form.rb', line 14
Puppet::Functions.create_function(:'wmflib::encode_www_form') do
dispatch :encode_www_form do
param 'Hash', :object
end
def encode_www_form(object)
URI.encode_www_form(object)
end
end
|