Module: Redmine::MenuManager
- Defined in:
- lib/redmine/menu_manager.rb
Overview
Defined Under Namespace
Modules: MenuController, MenuHelper
Classes: Mapper, MenuError, MenuItem, MenuNode
Class Method Summary
collapse
Class Method Details
.items(menu_name) ⇒ Object
241
242
243
|
# File 'lib/redmine/menu_manager.rb', line 241
def items()
@items[.to_sym] || MenuNode.new(:root, {})
end
|
.map(menu_name) ⇒ Object
231
232
233
234
235
236
237
238
239
|
# File 'lib/redmine/menu_manager.rb', line 231
def map()
@items ||= {}
mapper = Mapper.new(.to_sym, @items)
if block_given?
yield mapper
else
mapper
end
end
|