class

Asciidoctor::List

Inherits Asciidoctor::AbstractBlock < Asciidoctor::Substitutors < Asciidoctor::AbstractNode < Asciidoctor::Logging < Reference < Object

Methods for managing AsciiDoc lists (ordered, unordered and description lists).

Constructors

new(parent_block : AbstractBlock, context : Symbol, attributes : Hash(String, String) = {} of String => String)
Source

Instance methods

convert

Delegate to the converter to convert this list.

Source
document
Source
items

Alias for blocks.

Source
items?

Check if this list has items.

Source
outline?

Check whether this list is an outline list (unordered or ordered).

Source
parent_block

The parent block.

Source
to_s(io : IO) : Nil

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>
Source