Asciidoctor::Section
Inherits Asciidoctor::AbstractBlock < Asciidoctor::Substitutors < Asciidoctor::AbstractNode < Asciidoctor::Logging < Reference < Object
Methods for managing sections of AsciiDoc content in a document. The section responds as an Array of content blocks by delegating block-related methods to its @blocks Array.
Constructors
Class methods
Instance methods
Append a content block to this block's list of blocks. If the child block is a Section, assign an index to it.
Get the section number for the current Section.
The section number is a dot-separated String that uniquely describes the position of this Section in the document.
Flag to indicate whether this is a special section or a child of one.
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>