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

# class Asciidoctor::Extensions::DocinfoProcessor

Public: DocinfoProcessors are used to add additional content to the header and/or footer of the generated document.

The placement of docinfo content is controlled by the converter.

DocinfoProcessors implementations must extend DocinfoProcessor. If a location is not specified, the DocinfoProcessor is assumed to add content to the header.

### Constants

DSL

### Attributes

location[RW]

### Public Class Methods

new(config = {}) click to toggle source
Calls superclass method Asciidoctor::Extensions::Processor.new

    # File lib/asciidoctor/extensions.rb, line 430
    def initialize config = {}
      super config
      @config[:location] ||= :head
    end

### Public Instance Methods

process(document) click to toggle source

    # File lib/asciidoctor/extensions.rb, line 435
    def process document
      raise ::NotImplementedError, %Q(Asciidoctor::Extensions::DocinfoProcessor subclass must implement ##{__method__} method)
    end