Sha256: 500430bb8c1c60e4c53e8daf9b603bd90ba110d6c9fce6c486fa026d54a3d46c

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

module Bundler
  module Dependencies
    class Visitor
      def self.walk(graph, depth = 0, &block)
        graph.each do |gem|
          block.call(gem, depth)
          walk(gem.dependencies, depth + 1, &block) if gem.dependencies
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bundler-dependencies-0.6.0 lib/bundler/dependencies/visitor.rb
bundler-dependencies-0.5.1 lib/bundler/dependencies/visitor.rb