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(parent, context) 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
render()
click to toggle source
Calls superclass method
Asciidoctor::AbstractBlock#render
# File lib/asciidoctor/list.rb, line 18 def render result = super @document.callouts.next_list if @context == :colist result end