summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-03-05 15:45:39 +0000
committerTP Honey <tphoney@users.noreply.github.com>2015-03-05 15:45:39 +0000
commit706b9e8205f1ff205226ef53e7d9b58de5cb6e54 (patch)
tree1174d15f958b302a015789ce757d4d52fb0b5d58 /README.markdown
parent20d49394fb8dd8c0482ca2be4214f9f596c03f11 (diff)
parent0236cd51bc2724b4ac68b91dda01d1b58b572df8 (diff)
Merge pull request #420 from mhaskel/improveprefix
Add support for hashes in the prefix function
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown
index 26a6b94..32d3b18 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.
@@ -455,7 +455,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