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

# 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 accomodate 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 612
    def initialize kind, instance, process_method = nil
      super kind, instance, instance.config
      @process_method = process_method || (instance.method :process)
    end