Class: Depdump::DependencyGraph::Formatter::Table
- Inherits:
-
Object
- Object
- Depdump::DependencyGraph::Formatter::Table
- Defined in:
- lib/depdump/dependency_graph.rb
Instance Method Summary collapse
Instance Method Details
#call(_nodes, edges) ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/depdump/dependency_graph.rb', line 45 def call(_nodes, edges) rows = [ "| From | To |", "| --- | --- |", ] rows = rows + edges.map do |edge| ["|", edge[:from].join("::"), "|", edge[:to].join("::"), "|"].join(" ") end rows.join("\n") end |