Method: Asciidoctor::Section#initialize
- Defined in:
- lib/asciidoctor/section.rb
#initialize(parent = nil, level = nil, numbered = false, opts = {}) ⇒ Section
Initialize an Asciidoctor::Section object.
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/asciidoctor/section.rb', line 46 def initialize parent = nil, level = nil, numbered = false, opts = {} super parent, :section, opts if Section === parent @level, @special = level || (parent.level + 1), parent.special else @level, @special = level || 1, false end @numbered = numbered @index = 0 end |