Class: Seafoam::MermaidWriter
- Inherits:
-
GraphvizWriter
- Object
- GraphvizWriter
- Seafoam::MermaidWriter
- 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
-
#initialize(*args) ⇒ MermaidWriter
constructor
A new instance of MermaidWriter.
Methods inherited from GraphvizWriter
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 |