Class Asciidoctor::Converter::CompositeConverter
In: lib/asciidoctor/converter/composite.rb
Parent: Converter::Base

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.

Methods

Attributes

converters  [R]  Get the Array of Converter objects in the chain

Public Class methods

Public Instance methods

Public: Delegates to the first converter that identifies itself as the handler for the given transform. The optional Hash is passed as the last option to the delegate‘s convert method.

node - the AbstractNode to convert transform - the optional String transform, or the name of the node if no

            transform is specified. (default: nil)

opts - an optional Hash that is passed to the delegate‘s convert method. (default: {})

Returns the String result returned from the delegate‘s convert method

convert_with_options(node, transform = nil, opts = {})

Alias for convert

Public: Retrieve the converter for the specified transform.

Returns the matching [Converter] object

Internal: Find the converter for the specified transform. Raise an exception if no converter is found.

Returns the matching [Converter] object

[Validate]