Class: Seafoam::MermaidWriter

Inherits:
GraphvizWriter show all
Defined in:
lib/seafoam/mermaid_writer.rb

Overview

A writer from graphs to the Mermaid format. Re-uses the Graphviz writer, just adapting for the syntax. Attributes are cherry-picked, and more things are left to defaults.

Instance Method Summary collapse

Methods inherited from GraphvizWriter

#write_graph

Constructor Details

#initialize(*args) ⇒ MermaidWriter

Returns a new instance of MermaidWriter.



8
9
10
11
# File 'lib/seafoam/mermaid_writer.rb', line 8

def initialize(*args)
  super(*args)
  @link_style_counter = 0
end