diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-12-19 10:41:07 -0800 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-12-19 10:41:07 -0800 |
commit | f6e20d20684f315d746e99ff554a0bdc714f96a3 (patch) | |
tree | 244d8a536943156580e01d5fa29bb3c7b80e2d56 /lib/puppet | |
parent | 69c42b7eef05e172227c6dcc1ce70f35a42e5398 (diff) | |
download | puppet-stdlib-f6e20d20684f315d746e99ff554a0bdc714f96a3.tar.gz puppet-stdlib-f6e20d20684f315d746e99ff554a0bdc714f96a3.tar.bz2 |
Update docs to reflect new behavior of delete function taking array in second argument
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/delete.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/delete.rb b/lib/puppet/parser/functions/delete.rb index a1e39ed..f548b44 100644 --- a/lib/puppet/parser/functions/delete.rb +++ b/lib/puppet/parser/functions/delete.rb @@ -17,6 +17,9 @@ string, or key from a hash. delete({'a'=>1,'b'=>2,'c'=>3}, 'b') Would return: {'a'=>1,'c'=>3} + delete({'a'=>1,'b'=>2,'c'=>3}, ['b','c']) + Would return: {'a'=>1} + delete('abracadabra', 'bra') Would return: 'acada' EOS |