class Asciidoctor::Extensions::ProcessorExtension

Public: A specialization of the Extension proxy that additionally stores a reference to the {Processor#process} method. By storing this reference, its possible to accommodate both concrete extension implementations and Procs.

Attributes

process_method[R]

Public Class Methods

new(kind, instance, process_method = nil) click to toggle source
Calls superclass method Asciidoctor::Extensions::Extension::new
# File lib/asciidoctor/extensions.rb, line 686
def initialize kind, instance, process_method = nil
  super kind, instance, instance.config
  @process_method = process_method || (instance.method :process)
end