Sha256: 03a2935f733a10cdf8b8f1cb0160e79b0dc8f51e55bef466fa0ea5920ddcb4e9
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
## Dir#multiglob Dir#multglob is like Dir#glob but it can handle more than one match parameter at a time. Given a directory 'multiglob' containing: A.txt A/B.txt A/B/C.txt We can use #multglob to find multiple matches. require 'facets/dir/multiglob' x = %w{ multiglob/A multiglob/A.txt } r = Dir.multiglob('multiglob/A', 'multiglob/A.*').sort r.assert == x ## Dir#multiglob_r Dir#multiglob_r is like #multiglob but automatically searches directories recrusively. x = %w{ multiglob/A multiglob/A/B multiglob/A.txt multiglob/A/B.txt multiglob/A/B/C.txt }.sort r = Dir.multiglob_r('multiglob/*').sort r.assert == x
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/dir/multiglob.md |
facets-3.1.0 | demo/core/dir/multiglob.md |