Abstract base class for converters.
Class methods
derive_backend_traits(backend :
String, basebackend :
String |
Nil = nil) :
BackendTraits Derive backend traits from the backend name.
SourceInstance methods
backend
The backend name this converter handles.
Sourcebackend_traits
Backend traits for this converter.
Sourcebackend_traits=(backend_traits : BackendTraits)
Backend traits for this converter.
Sourcecontent_only(node :
AbstractNode) :
String Return the content of the node (for pass-through).
Sourceskip(node : AbstractNode) : Nil
Skip conversion of the node.
Sourcesupports_templates(value :
Bool = true) :
Bool Mark this converter as supporting templates.
Sourcesupports_templates?
Check whether this converter supports templates.
SourceMacros
register_for(*backends)
Register this converter class for the given backends in the default registry.
Source