summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown12
1 files changed, 8 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index a176d88..6ac1b8a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -405,12 +405,16 @@ Returns boolean based on kind and value:
* ipaddress
* network
-has_interface_with("macaddress", "x:x:x:x:x:x")
-has_interface_with("ipaddress", "127.0.0.1") => true
+*Examples:*
+
+ has_interface_with("macaddress", "x:x:x:x:x:x")
+ has_interface_with("ipaddress", "127.0.0.1") => true
+
etc.
If no "kind" is given, then the presence of the interface is checked:
-has_interface_with("lo") => true
+
+ has_interface_with("lo") => true
- *Type*: rvalue
@@ -766,7 +770,7 @@ are replaced by a single character.
str2bool
--------
-This converts a string to a boolean. This attempt to convert strings that
+This converts a string to a boolean. This attempts to convert strings that
contain things like: y, 1, t, true to 'true' and strings that contain things
like: 0, f, n, false, no to 'false'.