Module: Journeyviz::Graphable

Includes:
Externals, Transitions
Included in:
Block, Journey
Defined in:
lib/journeyviz/graphable.rb,
lib/journeyviz/graphable/externals.rb,
lib/journeyviz/graphable/transitions.rb

Defined Under Namespace

Modules: Externals, Transitions

Instance Method Summary collapse

Instance Method Details

#graphObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/journeyviz/graphable.rb', line 11

def graph
  defs = [
    *graph_screens,
    *graph_blocks,
    *graph_inputs,
    *graph_outputs,
    *graph_transitions,
    *graph_styles
  ].join("\n")

  "graph LR\n#{defs}"
end