Class: Utracker::Drawer

Inherits:
Object
  • Object
show all
Defined in:
lib/utracker/drawer.rb

Defined Under Namespace

Classes: Node

Instance Method Summary collapse

Instance Method Details

#write_graph(filename) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/utracker/drawer.rb', line 9

def write_graph(filename)
  File.open(filename, 'w') do |file|
    file.puts "digraph message_flow {"
    file.puts "  node [style=filled fillcolor=white]"
    file.puts "  rankdir=LR"
    write_graph_into(file)
    file.puts "}"
  end
end