Sha256: b8d4fbd68319875a41e6f385f092673110b2e0acd1cf43db584cfe028085e60b
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 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 & 1 rubygems
Version | Path |
---|---|
facets-3.0.0 | demo/core/dir/multiglob.rdoc |
facets-2.9.3 | qed/core/dir/multiglob.rdoc |