class

Asciidoctor::Converter::Base

Inherits Reference < Object

Abstract base class for converters.

Constructors

new(backend : String)
Source

Class methods

derive_backend_traits(backend : String, basebackend : String | Nil = nil) : BackendTraits

Derive backend traits from the backend name.

Source

Instance methods

backend

The backend name this converter handles.

Source
backend_traits

Backend traits for this converter.

Source
backend_traits=(backend_traits : BackendTraits)

Backend traits for this converter.

Source
content_only(node : AbstractNode) : String

Return the content of the node (for pass-through).

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

Convert a node to its output representation.

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

Dispatch conversion to the appropriate method.

Source
handles?(transform : String) : Bool

Check whether this converter handles the specified transform.

Source
skip(node : AbstractNode) : Nil

Skip conversion of the node.

Source
supports_templates(value : Bool = true) : Bool

Mark this converter as supporting templates.

Source
supports_templates?

Check whether this converter supports templates.

Source

Macros

register_for(*backends)

Register this converter class for the given backends in the default registry.

Source