Module: GraphDrawer
- Included in:
- Gpr::CLI
- Defined in:
- lib/graph_drawer.rb,
lib/graph_drawer/data.rb,
lib/graph_drawer/graph.rb
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#data(item, value) ⇒ Object
12 13 14 15 |
# File 'lib/graph_drawer.rb', line 12 def data(item, value) @data = Data.new(item, value) @graph.add(@data) end |
#graph ⇒ Object
5 6 7 8 9 10 |
# File 'lib/graph_drawer.rb', line 5 def graph @graph = Graph.new yield @graph.datas_init @graph.to_s end |