struct

Hwaro::Models::MenuRegistration

Inherits Struct / Value / Object

Front-matter registration of a page/section into a named menu (see [[menus.*]] in config for the config-side counterpart). All fields are optional: a bare menus = ["main"] entry yields a MenuRegistration with everything nil, and the menu builder falls back to the page's own title/weight/identifier/parent-less defaults.

Constructors

new(name : String | Nil = nil, weight : Int32 | Nil = nil, parent : String | Nil = nil, identifier : String | Nil = nil)
Source

Instance methods

clone
Source
copy_with(name _name = @name, weight _weight = @weight, parent _parent = @parent, identifier _identifier = @identifier)
Source
identifier
name
parent
weight