Class: ActionDispatch::Journey::Visitors::Dot
- Defined in:
- lib/action_dispatch/journey/visitors.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Visitor
Instance Method Summary collapse
- #accept(node) ⇒ Object
-
#initialize ⇒ Dot
constructor
A new instance of Dot.
Constructor Details
#initialize ⇒ Dot
Returns a new instance of Dot.
153 154 155 156 |
# File 'lib/action_dispatch/journey/visitors.rb', line 153 def initialize @nodes = [] @edges = [] end |
Instance Method Details
#accept(node) ⇒ Object
158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/action_dispatch/journey/visitors.rb', line 158 def accept(node) super <<-eodot digraph parse_tree { size="8,5" node [shape = none]; edge [dir = none]; #{@nodes.join "\n"} #{@edges.join("\n")} } eodot end |