class Utils::Grepper

def discover_roots(roots)

Returns:
  • (Array) - an array of expanded directory paths matching the input patterns

Parameters:
  • roots (Array, nil) -- an array of root patterns or nil
def discover_roots(roots)
  roots ||= []
  roots.inject([]) { |rs, r| rs.concat Dir[r] }
end