class Bootsnap::LoadPathCache::Cache
def unshift_paths_locked(*paths)
def unshift_paths_locked(*paths) @store.transaction do paths.map(&:to_s).reverse_each do |path| p = Path.new(path) next if p.non_directory? p = p.to_realpath expanded_path = p.expanded_path entries = p.entries(@store) # unshift -> high precedence -> unconditional set entries.each { |rel| @index[rel] = expanded_path } end end end