class Asciidoctor::Extensions::Registry

def prefer *args, &block

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

end
end
...
process do |document, reader, target, attrs|
prefer :include_processor do

Examples

processor of its kind in the extension registry.
Public: Inserts the document processor {Extension} instance as the first
def prefer *args, &block
  extension = ProcessorExtension === (arg0 = args.shift) ? arg0 : (send arg0, *args, &block)
  extensions_store = instance_variable_get(%(@#{extension.kind}_extensions).to_sym)
  extensions_store.unshift extensions_store.delete extension
  extension
end