Method: AST2Dot#render

Defined in:
lib/ast2dot.rb

#renderObject



20
21
22
23
24
25
26
27
28
# File 'lib/ast2dot.rb', line 20

def render
  @graph_edges = []
  @node_labels = Hash.new

  node_labelling(ast)

  graph_data = ERB.new(@template, nil, '-').result(binding)
  graph_data.lines.map(&:rstrip).join("\n")
end