class Asciidoctor::Extensions::Registry

def treeprocessor *args, &block

instance of this Treeprocessor.
Returns the [Extension] stored in the registry that proxies the

end
end
...
process |document|
treeprocessor do
# as a method block

treeprocessor 'ShellTreeprocessor'
# as a name of a Treeprocessor subclass

treeprocessor ShellTreeprocessor.new
# as an instance of a Treeprocessor subclass

treeprocessor ShellTreeprocessor
# as a Treeprocessor subclass

Examples

first argument to this method.
Unless the Treeprocessor is passed as the method block, it must be the

* A method block (i.e., Proc) that conforms to the Treeprocessor contract
* The String name of a Treeprocessor subclass
* An instance of a Treeprocessor subclass
* A Treeprocessor subclass

The Treeprocessor may be one of four types:

the AsciiDoc source after parsing is complete.
Public: Registers a {Treeprocessor} with the extension registry to process
def treeprocessor *args, &block
  add_document_processor :treeprocessor, args, &block
end