class Entry
Represents a sidebar navigation entry with title, level, and anchor.
Definitions
def initialize(title_html, level, anchor)
Initialize a sidebar entry.
Signature
-
parameter
title_htmlXRB::Markup The rendered heading title.
-
parameter
levelInteger The heading level.
-
parameter
anchorString The heading anchor.
Implementation
def initialize(title_html, level, anchor)
@title_html = title_html
@level = level
@anchor = anchor
end
attr :title_html
The HTML content of the heading.
Signature
-
attribute
XRB::Markup
attr :level
The heading level (1-6).
Signature
-
attribute
Integer
attr :anchor
The anchor ID for linking to this heading.
Signature
-
attribute
String