class Utils::Finder
def discover_roots(roots)
-
(Array
- an array of expanded directory paths that match)
Parameters:
-
roots
(Array
) -- an array of root patterns or nil, nil
def discover_roots(roots) roots ||= [] roots.inject([]) { |rs, r| rs.concat Dir[r] } end