class Asciidoctor::Extensions::IncludeProcessor
Public: IncludeProcessors are used to process `include::<target>[]` directives in the source document.
When Asciidoctor
comes across a `include::<target>[]` directive in the source document, it iterates through the IncludeProcessors and delegates the work of reading the content to the first processor that identifies itself as capable of handling that target.
IncludeProcessor
implementations must extend IncludeProcessor
.
Constants
- DSL
Public Instance Methods
handles?(target)
click to toggle source
# File lib/asciidoctor/extensions.rb, line 394 def handles? target true end
process(document, reader, target, attributes)
click to toggle source
# File lib/asciidoctor/extensions.rb, line 390 def process document, reader, target, attributes raise ::NotImplementedError, %(Asciidoctor::Extensions::IncludeProcessor subclass must implement ##{__method__} method) end