Class: Arel::Visitors::Dot

Inherits:
Visitor
  • Object
show all
Defined in:
lib/arel/visitors/dot.rb

Defined Under Namespace

Classes: Edge, Node

Instance Method Summary collapse

Constructor Details

#initializeDot

Returns a new instance of Dot.


17
18
19
20
21
22
23
# File 'lib/arel/visitors/dot.rb', line 17

def initialize
  @nodes      = []
  @edges      = []
  @node_stack = []
  @edge_stack = []
  @seen       = {}
end

Instance Method Details

#accept(object) ⇒ Object


25
26
27
28
# File 'lib/arel/visitors/dot.rb', line 25

def accept object
  super
  to_dot
end