class Asciidoctor::Extensions::BlockProcessor

Supported options:

Attributes

context[R]
document[R]
options[R]

Public Class Methods

config() click to toggle source
# File lib/asciidoctor/extensions.rb, line 368
def config
  @config ||= {:contexts => [:paragraph, :open]}
end
new(context, document, opts = {}) click to toggle source
Calls superclass method Asciidoctor::Extensions::Processor.new
# File lib/asciidoctor/extensions.rb, line 381
def initialize(context, document, opts = {})
  super(document)
  @context = context
  @options = self.class.config.dup
  opts.delete(:contexts) # contexts can't be overridden
  @options.update(opts)
  #@options[:contexts] ||= [:paragraph, :open]
  @options[:content_model] ||= :compound
end
option(key, default_value) click to toggle source
# File lib/asciidoctor/extensions.rb, line 372
def option(key, default_value)
  config[key] = default_value
end

Public Instance Methods

process(parent, reader, attributes) click to toggle source
# File lib/asciidoctor/extensions.rb, line 391
def process parent, reader, attributes
  nil
end