#
# union.rb
#
-
module Puppet::Parser::Functions
- newfunction(:union, :type => :rvalue, :doc => <<-EOS
-This function returns a union of two or more arrays.
-
-*Examples:*
-
- union(["a","b","c"],["b","c","d"])
-
-Would return: ["a","b","c","d"]
- EOS
- ) do |arguments|
+ newfunction(:union, :type => :rvalue, :doc => <<-DOC
+ @summary
+ This function returns a union of two or more arrays.
+
+ @return
+ a unionized array of two or more arrays
+ @example **Usage**
+
+ union(["a","b","c"],["b","c","d"])
+ Would return: ["a","b","c","d"]
+ DOC
+ ) do |arguments|
# Check that 2 or more arguments have been given ...
raise(Puppet::ParseError, "union(): Wrong number of arguments given (#{arguments.size} for < 2)") if arguments.size < 2