Module: Redmine::MenuManager
- Defined in:
- lib/redmine/menu_manager.rb
Defined Under Namespace
Modules: MenuController, MenuHelper
Classes: Mapper, MenuError, MenuItem, MenuNode
Class Method Summary
collapse
Class Method Details
.items(menu_name) ⇒ Object
264
265
266
|
# File 'lib/redmine/menu_manager.rb', line 264
def items()
@items[.to_sym] || MenuNode.new(:root, {})
end
|
.map(menu_name) ⇒ Object
254
255
256
257
258
259
260
261
262
|
# File 'lib/redmine/menu_manager.rb', line 254
def map()
@items ||= {}
mapper = Mapper.new(.to_sym, @items)
if block_given?
yield mapper
else
mapper
end
end
|