class Sprockets::Base

def find_all_linked_assets(*args)

def find_all_linked_assets(*args)
  return to_enum(__method__, *args) unless block_given?
  asset = find_asset(*args)
  return unless asset
  yield asset
  stack = asset.links.to_a
  while uri = stack.shift
    yield asset = load(uri)
    stack = asset.links.to_a + stack
  end
  nil
end