class Asciidoctor::Extensions::IncludeProcessor - asciidoctor-1.5.6.2 Documentation

# 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 393
    def handles? target
      true
    end

process(document, reader, target, attributes) click to toggle source

    # File lib/asciidoctor/extensions.rb, line 389
    def process document, reader, target, attributes
      raise ::NotImplementedError, %Q(Asciidoctor::Extensions::IncludeProcessor subclass must implement ##{__method__} method)
    end