Public: Methods for managing AsciiDoc lists (ordered, unordered and description lists)
# File lib/asciidoctor/list.rb, line 12 def initialize parent, context super end
# File lib/asciidoctor/list.rb, line 23 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 19 def outline? @context == :ulist || @context == :olist end
# 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