Class: RailsGraph::Commands::Builders::GemsBuilder
- Inherits:
-
Object
- Object
- RailsGraph::Commands::Builders::GemsBuilder
- Defined in:
- lib/rails_graph/commands/builders/gems_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.enrich(graph:, configuration:) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rails_graph/commands/builders/gems_builder.rb', line 7 def self.enrich(graph:, configuration:) return unless configuration.gems? new(graph: graph).enrich graph end |
Instance Method Details
#enrich ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/rails_graph/commands/builders/gems_builder.rb', line 15 def enrich build_gems_nodes gems.each do |specifications| source_node = graph.node("gem_#{specifications.name}") # build_authored_by_relationships(specifications, source_node) build_depends_on_gem_relationships(specifications, source_node) end end |