class Asciidoctor::Extensions::BlockMacroProcessor

Public: BlockMacroProcessors are used to handle block macros that have a custom name.

If the process method returns an instance of Block, the content model of that Block is :compound, and the Block contains at least one line, the parser will parse those lines into blocks an assigned them to the returned block.

BlockMacroProcessor implementations must extend BlockMacroProcessor.

Constants

DSL

Public Instance Methods

name() click to toggle source
# File lib/asciidoctor/extensions.rb, line 612
def name
  raise ::ArgumentError, %(invalid name for block macro: #{@name}) unless MacroNameRx.match? @name.to_s
  @name
end