Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/puppet/parser/functions/reject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ module Puppet::Parser::Functions
Would return:

['bbb','ccc']

This function performs the equivalent of using the more general
Puppet filter() function as shown in the following example:

['aaa', 'bbb', 'ccc', 'aaaddd'].filter |$x| { $x !~ /aaa/ }
DOC

if args.size != 2
Expand Down