class Asciidoctor::Extensions::Registry

def block *args, &block

registry and manages the instance of this BlockProcessor.
Returns an instance of the [Extension] proxy object that is stored in the

end
end
...
process |parent, reader, attrs|
register :shout do
# as a method block with an explicit block name

end
end
...
process |parent, reader, attrs|
named :shout
block do
# as a method block

block 'ShoutBlock', :shout
# as a name of a BlockProcessor subclass with an explicit block name

block 'ShoutBlock'
# as a name of a BlockProcessor subclass

block ShoutBlock.new, :shout
# as an instance of a BlockProcessor subclass with an explicit block name

block ShoutBlock.new
# as an instance of a BlockProcessor subclass

block ShoutBlock, :shout
# as a BlockProcessor subclass with an explicit block name

block ShoutBlock
# as a BlockProcessor subclass

Examples

is raised.
BlockProcessor instance. If a name still cannot be determined, an error
is not passed as an argument, it gets read from the name property of the
paragraph) that this processor is registered to handle. If a block name
to a Symbol) of the AsciiDoc block content (i.e., delimited block or
first argument to this method. The second argument is the name (coersed
Unless the BlockProcessor is passed as the method block, it must be the

* A method block (i.e., Proc) that conforms to the BlockProcessor contract
* The String name of a BlockProcessor subclass
* An instance of a BlockProcessor subclass
* A BlockProcessor subclass

The BlockProcessor may be one of four types:

AsciiDoc source annotated with the specified block name (i.e., style).
process the block content (i.e., delimited block or paragraph) in the
Public: Registers a {BlockProcessor} with the extension registry to
def block *args, &block
  add_syntax_processor :block, args, &block
end