Class: Arel::Visitors::Dot
Defined Under Namespace
Instance Method Summary collapse
- #accept(object, collector) ⇒ Object
-
#initialize ⇒ Dot
constructor
A new instance of Dot.
Constructor Details
#initialize ⇒ Dot
Returns a new instance of Dot.
17 18 19 20 21 22 23 24 |
# File 'lib/arel/visitors/dot.rb', line 17 def initialize super() @nodes = [] @edges = [] @node_stack = [] @edge_stack = [] @seen = {} end |
Instance Method Details
#accept(object, collector) ⇒ Object
26 27 28 29 |
# File 'lib/arel/visitors/dot.rb', line 26 def accept object, collector visit object collector << to_dot end |