class Asciidoctor::List - asciidoctor-1.5.6.2 Documentation

# class Asciidoctor::List

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

### Public Class Methods

new(parent, context) click to toggle source
Calls superclass method Asciidoctor::AbstractBlock.new

    # File lib/asciidoctor/list.rb, line 12
    def initialize parent, context
      super
    end

### Public Instance Methods

convert() click to toggle source
Calls superclass method Asciidoctor::AbstractBlock#convert

    # File lib/asciidoctor/list.rb, line 23
    def convert
      if @context == :colist
        result = super
        @document.callouts.next_list
        result
      else
        super
      end
    end

Also aliased as: render
outline?() click to toggle source

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

Return true if this list is an outline list. Otherwise, return false.

    # File lib/asciidoctor/list.rb, line 19
    def outline?
      @context == :ulist || @context == :olist
    end

render()

Alias render to convert to maintain backwards compatibility

Alias for: convert
to_s() click to toggle source

    # File lib/asciidoctor/list.rb, line 36
    def to_s
      %Q(#<#{self.class}@#{object_id} {context: #{@context.inspect}, style: #{@style.inspect}, items: #{items.size}}>)
    end