projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
difference.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/difference.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/difference.rb
index
360c1e3
..
49e8673
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/difference.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/difference.rb
@@
-3,20
+3,24
@@
#
module Puppet::Parser::Functions
newfunction(:difference, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:difference, :type => :rvalue, :doc => <<-DOC
- This function returns the difference between two arrays.
+ @summary
+ This function returns the difference between two arrays.
+
The returned array is a copy of the original array, removing any items that
also appear in the second array.
The returned array is a copy of the original array, removing any items that
also appear in the second array.
- *Examples:*
-
- difference(["a","b","c"],["b","c","d"])
+ @example Example usage
- Would return: ["a"]
+ difference(["a","b","c"],["b","c","d"])
+ Would return: `["a"]`
- Note: Since Puppet 4 the minus (-) operator in the Puppet language does the same thing:
+ > *Note:*
+ Since Puppet 4 the minus (-) operator in the Puppet language does the same thing:
+ ['a', 'b', 'c'] - ['b', 'c', 'd']
+ Would return: `['a']`
-
['a', 'b', 'c'] - ['b', 'c', 'd'
]
- # would return ['a']
+
@return [Array
]
+ The difference between the two given arrays
DOC
) do |arguments|
DOC
) do |arguments|