diff options
author | Stefan Goethals <stefan@zipkid.eu> | 2014-06-04 06:12:22 -0700 |
---|---|---|
committer | Morgan Haskel <morgan@puppetlabs.com> | 2015-03-03 16:20:55 -0800 |
commit | 0236cd51bc2724b4ac68b91dda01d1b58b572df8 (patch) | |
tree | 12b8950f2c12fcecce791a08b2f790066921bb9b /README.markdown | |
parent | b8547b7c29801ca3d89230dfc95716d6f93040ab (diff) |
Add support for hashes in the prefix function
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index ac0cae6..3a33d48 100644 --- a/README.markdown +++ b/README.markdown @@ -360,7 +360,7 @@ returns the value of the resource's parameter. For example, the following code r *Type*: rvalue -* `prefix`: This function applies a prefix to all elements in an array. For example, `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc']. *Type*: rvalue +* `prefix`: This function applies a prefix to all elements in an array or to the keys in a hash. For example, `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc'], and `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}. *Type*: rvalue * `private`: This function sets the current class or definition as private. @@ -453,7 +453,6 @@ manifests as a valid password attribute. *Type*: rvalue * `%Z`: Time zone name * `%%`: Literal '%' character - * `strip`: This function removes leading and trailing whitespace from a string or from every string inside an array. For example, `strip(" aaa ")` results in "aaa". *Type*: rvalue * `suffix`: This function applies a suffix to all elements in an array. For example, `suffix(['a','b','c'], 'p')` returns ['ap','bp','cp']. *Type*: rvalue |