Class: GDA::Visitors::Dot
Constant Summary collapse
- HEADER =
"digraph G { graph [rankdir = \"TB\"];"
- FOOTER =
"}"
Instance Attribute Summary collapse
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
- #accept(node) ⇒ Object
-
#initialize(io = StringIO.new) ⇒ Dot
constructor
A new instance of Dot.
Constructor Details
#initialize(io = StringIO.new) ⇒ Dot
Returns a new instance of Dot.
10 11 12 13 |
# File 'lib/gda/visitors/dot.rb', line 10 def initialize io = StringIO.new @stack = [] @buffer = io end |
Instance Attribute Details
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
8 9 10 |
# File 'lib/gda/visitors/dot.rb', line 8 def stack @stack end |