Class MaRuKu::Section
In: lib/maruku/toc.rb
Parent: Object

This represents a section in the TOC.

Methods

Included Modules

REXML

Attributes

header_element  [RW]  reference to header (header has h.meta[:section] to self)
immediate_children  [RW]  Array of immediate children of this element
section_children  [RW]  Array of Section inside this section
section_level  [RW]  a Fixnum, is == header_element.level
section_number  [RW]  An array of fixnum, like [1,2,5] for Section 1.2.5

Public Class methods

Public Instance methods

Numerate this section and its children

Creates an HTML toc. Call this on the root

Creates a latex toc. Call this on the root

[Validate]