class Asciidoctor::AbstractBlock

def caption

attribute if this is an admonition block).
Returns the [String] caption for this block (or the value of the textlabel

admonition block to the textlabel attribute.
This method routes the deprecated use of the caption method on an

Gets the caption for this block.
def caption
  @context == :admonition ? @attributes['textlabel'] : @caption
end