Skip to content

Commit 1e7cb43

Browse files
author
Sascha Spreitzer
committed
Add glob description
1 parent 56f8247 commit 1e7cb43

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,17 @@ This is useful if the namespace itself is stored in a string:
635635

636636
*Type*: rvalue.
637637

638+
#### `glob`
639+
640+
A wrapper for Dir#glob function that accepts a string or an array if strings of path patterns to be interpolated.
641+
Returns an array of strings of matched paths.
642+
643+
~~~
644+
$confs = glob(['/etc/**/*.conf', '/opt/**/*.conf'])
645+
~~~
646+
647+
*Type*: rvalue.
648+
638649
#### `grep`
639650

640651
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.

0 commit comments

Comments
 (0)