module Asciidoctor::Diagram::DiagramConverter

This module describes the duck-typed interface that diagram converters must implement. Implementations may include this module but it is not required.

Public Instance Methods

collect_options(source) click to toggle source
# File lib/asciidoctor-diagram/diagram_converter.rb, line 14
def collect_options(source)
  {}
end
convert(source, format, options) click to toggle source
# File lib/asciidoctor-diagram/diagram_converter.rb, line 18
def convert(source, format, options)
  raise NotImplementedError.new
end
native_scaling?() click to toggle source
# File lib/asciidoctor-diagram/diagram_converter.rb, line 22
def native_scaling?
  false
end
supported_formats() click to toggle source
# File lib/asciidoctor-diagram/diagram_converter.rb, line 6
def supported_formats
  raise NotImplementedError.new
end
wrap_source(source) click to toggle source
# File lib/asciidoctor-diagram/diagram_converter.rb, line 10
def wrap_source(source)
  source
end