Class: Genit::MenuBuilder

Inherits:
BuilderBase show all
Defined in:
lib/genit/builders/menu_builder.rb

Overview

Modify menu links.

Instance Method Summary collapse

Methods inherited from BuilderBase

#build, get_number_of_base_dirs, #initialize

Constructor Details

This class inherits a constructor from Genit::BuilderBase

Instance Method Details

#build_for_page(page_name) ⇒ Object

Public: Build the menu of a particular page.

page_name - The string filename of the page to build menu for.

Returns the modified Nokogiri::XML::Document



13
14
15
# File 'lib/genit/builders/menu_builder.rb', line 13

def build_for_page page_name
  build page_name, menu_links
end