# File lib/asciidoctor/abstract_block.rb, line 30 def initialize parent, context, opts = {} super @content_model = :compound @blocks = [] @subs = [] @id = @title = @title_converted = @caption = @number = @style = @default_subs = @source_location = nil if context == :document @level = 0 elsif parent && context != :section @level = parent.level else @level = nil end @next_section_index = 0 @next_section_number = 1 end