Class: Percheron::Graph
- Inherits:
-
Object
- Object
- Percheron::Graph
- Defined in:
- lib/percheron/graph.rb
Instance Method Summary collapse
-
#initialize(stack) ⇒ Graph
constructor
A new instance of Graph.
- #save!(file) ⇒ Object
Constructor Details
#initialize(stack) ⇒ Graph
Returns a new instance of Graph.
6 7 8 9 10 |
# File 'lib/percheron/graph.rb', line 6 def initialize(stack) @stack = stack @nodes = {} @graphs = {} end |
Instance Method Details
#save!(file) ⇒ Object
12 13 14 15 |
# File 'lib/percheron/graph.rb', line 12 def save!(file) generate save(file) end |