Class: Asciidoctor::Extensions::TreeProcessor
- Defined in:
- lib/asciidoctor/extensions.rb
Overview
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. – QUESTION should the tree processor get invoked after parse header too?
Constant Summary collapse
- DSL =
DocumentProcessorDsl
Instance Attribute Summary
Attributes inherited from Processor
Instance Method Summary collapse
Methods inherited from Processor
config, #create_block, #create_image_block, #create_inline, #create_list, #create_list_item, #create_section, enable_dsl, #initialize, option, #parse_attributes, #parse_content, #update_config
Constructor Details
This class inherits a constructor from Asciidoctor::Extensions::Processor
Instance Method Details
#process(document) ⇒ Object
405 406 407 |
# File 'lib/asciidoctor/extensions.rb', line 405 def process document raise ::NotImplementedError, %(#{TreeProcessor} subclass #{self.class} must implement the ##{__method__} method) end |