Sha256: d176a79dca367ce73deba2e048e88117a5410b44735a6a1d65a8b04e587d8e7e

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module Bundler
  module Dependencies
    class Visitor
      def self.walk(graph, depth = 0, &block)
        graph.each do |gem|
          yield(gem, depth)
          walk(gem.dependencies, depth + 1, &block) if gem.dependencies
        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/visitor.rb