Module: Asciidoctor::Diagram::DiagramConverter
- Included in:
- AsciiToSvgConverter, BarcodeConverter, BpmnConverter, BytefieldConverter, D2Converter, DbmlConverter, DiagramsConverter, DitaaConverter, DpicConverter, ErdConverter, GnuplotConverter, GraphvizConverter, GraphvizPyConverter, HttpConverter, LilypondConverter, MemeConverter, MermaidConverter, MscgenConverter, NomnomlConverter, PenroseConverter, PikchrConverter, PlantUmlConverter, ShaapeConverter, SmcatConverter, StructurizrConverter, SvgbobConverter, SymbolatorConverter, SyntraxConverter, TikZConverter, UmletConverter, VegaConverter, WavedromConverter
- Defined in:
- lib/asciidoctor-diagram/diagram_converter.rb
Overview
This module describes the duck-typed interface that diagram converters must implement. Implementations may include this module but it is not required.
Instance Method Summary collapse
- #collect_options(source) ⇒ Object
- #convert(source, format, options) ⇒ Object
- #native_scaling? ⇒ Boolean
- #supported_formats ⇒ Object
- #wrap_source(source) ⇒ Object
Instance Method Details
#collect_options(source) ⇒ Object
14 15 16 |
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 14 def (source) {} end |
#convert(source, format, options) ⇒ Object
18 19 20 |
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 18 def convert(source, format, ) raise NotImplementedError.new end |
#native_scaling? ⇒ Boolean
22 23 24 |
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 22 def native_scaling? false end |
#supported_formats ⇒ Object
6 7 8 |
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 6 def supported_formats raise NotImplementedError.new end |
#wrap_source(source) ⇒ Object
10 11 12 |
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 10 def wrap_source(source) source end |