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 452 def handles? target true end
process(document, reader, target, attributes)
click to toggle source
# File lib/asciidoctor/extensions.rb, line 448 def process document, reader, target, attributes raise ::NotImplementedError, %(#{IncludeProcessor} subclass #{self.class} must implement the ##{__method__} method) end