Class: Percheron::Graph

Inherits:
Object
  • Object
show all
Defined in:
lib/percheron/graph.rb

Instance Method Summary collapse

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