summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJoseph Yaworski <joseph.yaworski@fireeye.com>2016-04-12 16:53:07 -0400
committerJoseph Yaworski <joseph.yaworski@fireeye.com>2016-05-04 11:32:10 -0400
commit540546b9b41745bbc4821f9966ae301dc0b5056a (patch)
treebaa574d4e850aec389288bc943368bfb8de3dfe9 /README.markdown
parentf48747b8af8fdad455cfd5b5d0d2c2abfd8c9415 (diff)
Use reject instead of delete_if
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 1ef6509..298b852 100644
--- a/README.markdown
+++ b/README.markdown
@@ -263,7 +263,11 @@ Takes a resource reference and an optional hash of attributes. Returns 'true' if
#### `delete`
-Deletes all instances of a given element from an array, substring from a string, or key from a hash. For example, `delete(['a','b','c','b'], 'b')` returns ['a','c']; `delete('abracadabra', 'bra')` returns 'acada'. `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}. *Type*: rvalue.
+Deletes all instances of a given element from an array, substring from a string, or key from a hash. Arrays and hashes may also match on regular expressions by providing a full regular expression.
+
+For example, `delete(['a','b','c','b'], 'b')` returns ['a','c']; `delete('abracadabra', 'bra')` returns 'acada'. `delete({'a' => 1,'b' => 2,'c' => 3},['b','c'])` returns {'a'=> 1}, `delete(['abf', 'ab', 'ac'], '^ab.*')` returns ['ac']. `delete(['ab', 'b'], 'b')` returns ['ab'].
+
+*Type*: rvalue.
#### `delete_at`