module Sprockets::Legacy
def each_logical_path(*args, &block)
args - List of matcher objects.
Remove from 4.x.
Deprecated: Iterate over all logical paths with a matcher.
def each_logical_path(*args, &block) return to_enum(__method__, *args) unless block_given? filters = args.flatten.map { |arg| Manifest.compile_match_filter(arg) } logical_paths.each do |a, b| if filters.any? { |f| f.call(a, b) } if block.arity == 2 yield a, b else yield a end end end nil end