class

Asciidoctor::Converter::CustomFactory

Inherits Reference < Object

A custom factory that stores converters in a local registry.

Constructors

new(seed_registry = nil)
Source

Instance methods

converter_for(backend : String) : Base.class | Nil

Lookup a converter by backend name.

Source
converters

Get all registered converters.

Source
create(backend : String, opts : Hash(String, String) = {} of String => String) : Base | Nil

Create a converter instance for the given backend.

Source
register(converter : Base.class, *backends : String) : Nil

Register a custom converter with this factory.

Source
unregister_all

Unregister all Converter classes that are registered with this factory.

Source