class Sprockets::Manifest
def find(*args)
Public: Find all assets matching pattern set in environment.
def find(*args) unless environment raise Error, "manifest requires environment for compilation" end return to_enum(__method__, *args) unless block_given? filters = args.flatten.map { |arg| self.class.compile_match_filter(arg) } environment = self.environment.cached environment.logical_paths do |logical_path, filename| if filters.any? { |f| f.call(logical_path, filename) } environment.find_all_linked_assets(filename) do |asset| yield asset end end end nil end