class

Asciidoctor::ListItem

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

Methods for managing items for AsciiDoc olists, ulists, and dlists.

Constructors

new(parent_list : List, text : String | Nil = nil)
Source

Instance methods

compound?

Check whether this list item has compound content.

Source
document
Source
fold_first

Fold the adjacent paragraph block into the list item text.

Source
list

Alias for parent list.

Source
marker

The String used to mark this list item.

Source
marker=(marker : String | Nil)

The String used to mark this list item.

Source
parent_list

The parent list.

Source
simple?

Check whether this list item has simple content.

Source
text

Get the String text of this ListItem with substitutions applied.

Source
text=(val : String | Nil)

Set the String text assigned to this ListItem.

Source
text?

A convenience method that checks whether the text of this list item is not blank (i.e., not nil or empty string).

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