Sha256: 7cf3a66f0305e2ec8887f2efd4a664f327277e3678a8fc2093ae77fc906536df
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Bundler module Dependencies module Visitors class Paths def walk(graph, name, acc = [], key = []) graph.each do |gem| next unless gem.include_dependency?(name) new_key = key.dup.push(gem.name) walk(gem.dependencies, name, acc, new_key) acc << (new_key << name) if gem.dependencies.include?(name) end acc end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bundler-dependencies-1.0.0 | lib/bundler/dependencies/visitors/paths.rb |