Class: Bundler::Dependencies::Visitor
- Inherits:
-
Object
- Object
- Bundler::Dependencies::Visitor
- Defined in:
- lib/bundler/dependencies/visitor.rb
Class Method Summary collapse
Class Method Details
.walk(graph, depth = 0, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/bundler/dependencies/visitor.rb', line 4 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 |