class Weaver::NavPage

Pages with navigation menus

Public Class Methods

new(title, global_settings, options, &block) click to toggle source
Calls superclass method
# File lib/weaver/page_types/nav_page.rb, line 7
def initialize(title, global_settings, options, &block)
  super
  @menu = Menu.new
end

Public Instance Methods

brand(text, link = '/') click to toggle source
# File lib/weaver/page_types/nav_page.rb, line 16
def brand(text, link = '/')
  @brand = text
  @brand_link = link
end
menu(&block) click to toggle source