class Asciidoctor::AbstractBlock
def caption
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