Module: Asciidoctor::Diagram::DiagramConverter

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

Instance Method Details

#collect_options(source) ⇒ Object



14
15
16
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 14

def collect_options(source)
  {}
end

#convert(source, format, options) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 18

def convert(source, format, options)
  raise NotImplementedError.new
end

#native_scaling?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/asciidoctor-diagram/diagram_converter.rb', line 22

def native_scaling?
  false
end

#supported_formatsObject

Raises:

  • (NotImplementedError)


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