Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / has_interface_with.rb
index 44005d0..fb9af42 100644 (file)
@@ -3,18 +3,20 @@
 #
 module Puppet::Parser::Functions
   newfunction(:has_interface_with, :type => :rvalue, :doc => <<-DOC
-    Returns boolean based on kind and value:
-      * macaddress
-      * netmask
-      * ipaddress
-      * network
+    @summary
+      Returns boolean based on kind and value.
 
-    has_interface_with("macaddress", "x:x:x:x:x:x")
-    has_interface_with("ipaddress", "127.0.0.1")    => true
-    etc.
+    @return
+      boolean values `true` or `false`
 
-    If no "kind" is given, then the presence of the interface is checked:
-    has_interface_with("lo")                        => true
+    Valid kinds are `macaddress`, `netmask`, `ipaddress` and `network`.
+
+    @example **Usage**
+      has_interface_with("macaddress", "x:x:x:x:x:x") # Returns `false`
+      has_interface_with("ipaddress", "127.0.0.1") # Returns `true`
+
+    @example If no "kind" is given, then the presence of the interface is checked:
+      has_interface_with("lo") # Returns `true`
     DOC
              ) do |args|