class

Asciidoctor::Converter::CompositeConverter

Inherits Asciidoctor::Converter::Base < Reference < Object

A Converter implementation that delegates to the chain of Converter objects passed to the constructor. Selects the first Converter that identifies itself as the handler for a given transform.

Ported from Ruby Asciidoctor lib/asciidoctor/converter/composite.rb

Constructors

new(backend : String, converters : Array(Base), backend_traits_source : Base | Nil = nil)
Source
new(backend : String)
Source

Instance methods

convert(node : AbstractNode, transform : String | Nil = nil) : String

Delegates to the first converter that identifies itself as the handler for the given transform.

Source
converter_for(transform : String) : Base

Retrieve the converter for the specified transform (with caching).

Source
converters

Get the Array of Converter objects in the chain.

Source
dispatch(node : AbstractNode, transform : String) : String

Dispatch conversion to the appropriate method (delegates to convert).

Source
find_converter(transform : String) : Base

Find the converter for the specified transform. Raises an exception if no converter is found.

Source