Public: Methods for managing AsciiDoc lists (ordered, unordered and description lists)
# File lib/asciidoctor/list.rb, line 13 def initialize parent, context, opts = {} super end
# File lib/asciidoctor/list.rb, line 24 def convert if @context == :colist result = super @document.callouts.next_list result else super end end
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
# File lib/asciidoctor/list.rb, line 37 def to_s %Q(#<#{self.class}@#{object_id} {context: #{@context.inspect}, style: #{@style.inspect}, items: #{items.size}}>) end