Top Level Namespace

Defined Under Namespace

Modules: Dsl

Instance Method Summary collapse

Instance Method Details

#graph(label = nil, &block) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/dsl/graph.rb', line 7

def graph(label=nil, &block)
  $GRAPH ||= Dsl::Graph::Graph.new(label)
  return $GRAPH if block.nil?

  $GRAPH.run(&block)
  $GRAPH
end