class Asciidoctor::List
Public: Methods for managing AsciiDoc lists (ordered, unordered and description lists)
Public Class Methods
new(parent, context, opts = {})
click to toggle source
Calls superclass method
Asciidoctor::AbstractBlock::new
# File lib/asciidoctor/list.rb, line 13 def initialize parent, context, opts = {} super end
Public Instance Methods
convert()
click to toggle source
Calls superclass method
Asciidoctor::AbstractBlock#convert
# File lib/asciidoctor/list.rb, line 24 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 20 def outline? @context == :ulist || @context == :olist end
to_s()
click to toggle source
# File lib/asciidoctor/list.rb, line 37 def to_s %(#<#{self.class}@#{object_id} {context: #{@context.inspect}, style: #{@style.inspect}, items: #{items.size}}>) end