Class HtmlBlock::Section
In: lib/webgen/content.rb
Parent: Object
WebPageDataInvalid WebPageData HtmlBlock RuntimeError dot/f_1.png

A section with a block. Corresponds to an HTML header with an id.

Methods

new  

Attributes

id  [R]  The id of the tag.
level  [R]  The level of the header, ie. 1 for a h1 tag, 2, for a h2 tag, and so on.
subsections  [RW]  Sub sections of this section.
title  [R]  The title of the tag, ie. the content between the opening and closing h[123456] tag.

Public Class methods

Creates a new Section object with the given level, id, and title.

[Source]

    # File lib/webgen/content.rb, line 46
46:     def initialize( level, id, title )
47:       @level, @id, @title = level, id, title
48:       @subsections = []
49:     end

[Validate]