summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 03daae9..eee46e0 100644
--- a/README.markdown
+++ b/README.markdown
@@ -665,6 +665,17 @@ This is useful if the namespace itself is stored in a string:
*Type*: rvalue.
+#### `glob`
+
+Dir#glob wrapper that accepts a string or an array of strings of path patterns.
+Returns an array of strings of matched paths.
+
+ ~~~
+ $confs = glob(['/etc/**/*.conf', '/opt/**/*.conf'])
+ ~~~
+
+*Type*: rvalue.
+
#### `grep`
Searches through an array and returns any elements that match the provided regular expression. For example, `grep(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['aaa','aaaddd']. *Type*: rvalue.