module Sprockets::Paths

def each_file

Returns Enumerator if no block is given.

Public: Iterate over every file under all load paths.
def each_file
  return to_enum(__method__) unless block_given?
  paths.each do |root|
    stat_tree(root).each do |filename, stat|
      if stat.file?
        yield filename
      end
    end
  end
  nil
end