module Sprockets::PathUtils
def paths_split(paths, filename)
filename - String path of file expected to be in one of the paths.
paths - Array of String paths
Internal: Detect root path and base for file in a set of paths.
def paths_split(paths, filename) paths.each do |path| if subpath = split_subpath(path, filename) return path, subpath end end nil end