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
/
unique.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/unique.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/unique.rb
index
301f6a4
..
c9eaa08
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/unique.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/unique.rb
@@
-3,23
+3,22
@@
#
module Puppet::Parser::Functions
newfunction(:unique, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:unique, :type => :rvalue, :doc => <<-DOC
- This function will remove duplicates from strings and arrays.
+ @summary
+ This function will remove duplicates from strings and arrays.
- *Examples:*
+ @return
+ String or array with duplicates removed
- unique("aabbcc")
+ @example **Usage**
- Will return:
+ unique("aabbcc")
+ Will return: abc
- abc
+ You can also use this with arrays:
- You can also use this with arrays:
+ unique(["a","a","b","b","c","c"])
+ This returns: ["a","b","c"]
- unique(["a","a","b","b","c","c"])
-
- This returns:
-
- ["a","b","c"]
DOC
) do |arguments|
DOC
) do |arguments|