class Asciidoctor::List

Public: Methods for managing AsciiDoc lists (ordered, unordered and labeled lists)

Public Class Methods

new(parent, context) click to toggle source
Calls superclass method Asciidoctor::AbstractBlock.new
# File lib/asciidoctor/list.rb, line 9
def initialize parent, context
  super
end

Public Instance Methods

content() click to toggle source

Public: Get the items in this list as an Array

# File lib/asciidoctor/list.rb, line 14
def content
  @blocks
end
convert() click to toggle source
Calls superclass method Asciidoctor::AbstractBlock#convert
# File lib/asciidoctor/list.rb, line 18
def convert
  if @context == :colist
    result = super
    @document.callouts.next_list
    result
  else
    super
  end
end
Also aliased as: render
render()

Alias render to convert to maintain backwards compatibility

Alias for: convert
to_s() click to toggle source
# File lib/asciidoctor/list.rb, line 31
def to_s
  %Q(#<#{self.class}@#{object_id} {context: #{@context.inspect}, style: #{@style.inspect}, items: #{items.size}}>)
end