Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / join_keys_to_values.rb
index 99876d0..73d4a1f 100644 (file)
@@ -3,22 +3,22 @@
 #
 module Puppet::Parser::Functions
   newfunction(:join_keys_to_values, :type => :rvalue, :doc => <<-DOC
-    This function joins each key of a hash to that key's corresponding value with a
-    separator. Keys are cast to strings. If values are arrays, multiple keys
+    @summary
+      This function joins each key of a hash to that key's corresponding value with a
+      separator.
+
+    Keys are cast to strings. If values are arrays, multiple keys
     are added for each element. The return value is an array in
     which each element is one joined key/value pair.
 
-    *Examples:*
-
-        join_keys_to_values({'a'=>1,'b'=>2}, " is ")
-
-    Would result in: ["a is 1","b is 2"]
-
-        join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")
+    @example Example Usage:
+      join_keys_to_values({'a'=>1,'b'=>2}, " is ") # Results in: ["a is 1","b is 2"]
+      join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ") # Results in: ["a is 1","b is 2","b is 3"]
 
-    Would result in: ["a is 1","b is 2","b is 3"]
+    @return [Hash]
+      The joined hash
 
-    Note: Since Puppet 5.0.0 - for more detailed control over the formatting (including indentations and
+    > **Note:** Since Puppet 5.0.0 - for more detailed control over the formatting (including indentations and
     line breaks, delimiters around arrays and hash entries, between key/values in hash entries, and individual
     formatting of values in the array) - see the `new` function for `String` and its formatting
     options for `Array` and `Hash`.