Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / intersection.rb
index 8a438f4..b46ca58 100644 (file)
@@ -1,18 +1,19 @@
 #
 # intersection.rb
 #
-
 module Puppet::Parser::Functions
-  newfunction(:intersection, :type => :rvalue, :doc => <<-EOS
-This function returns an array of the intersection of two.
-
-*Examples:*
-
-    intersection(["a","b","c"],["b","c","d"])  # returns ["b","c"]
-    intersection(["a","b","c"],[1,2,3,4])      # returns [] (true, when evaluated as a Boolean)
-
-    EOS
-  ) do |arguments|
+  newfunction(:intersection, :type => :rvalue, :doc => <<-DOC
+    @summary
+      This function returns an array of the intersection of two.
+
+    @return
+      an array of the intersection of two.
+
+    @example Example Usage:
+      intersection(["a","b","c"],["b","c","d"])  # returns ["b","c"]
+      intersection(["a","b","c"],[1,2,3,4])      # returns [] (true, when evaluated as a Boolean)
+    DOC
+             ) do |arguments|
 
     # Two arguments are required
     raise(Puppet::ParseError, "intersection(): Wrong number of arguments given (#{arguments.size} for 2)") if arguments.size != 2