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

# class Asciidoctor::Extensions::Treeprocessor

Public: TreeProcessors are run on the Document after the source has been parsed into an abstract syntax tree (AST), as represented by the Document object and its child Node objects (e.g., Section, Block, List, ListItem).

Asciidoctor invokes the {Processor#process} method on an instance of each registered TreeProcessor.

TreeProcessor implementations must extend TreeProcessor.

### Constants

DSL

  Internal: Overlays a builder DSL for configuring the Processor instance. Includes a method to define configuration options and another to define the {Processor#process} method.

### Public Instance Methods

process(document) click to toggle source

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