class Crst::Section

Overview

Represents a section with a title and content

Sections are created from underlined/overlined titles in RST.

Defined in:

crst/nodes.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title : String, level : Int32) #

[View source]

Instance Method Detail

def children : Array(Crst::Node) #

Child nodes within this section


[View source]
def children=(children : Array(Crst::Node)) #

Child nodes within this section


[View source]
def level : Int32 #

The section level (0 for top-level, 1 for subsections, etc.)


[View source]
def level=(level : Int32) #

The section level (0 for top-level, 1 for subsections, etc.)


[View source]
def title : String #

The section title text


[View source]
def title=(title : String) #

The section title text


[View source]