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
219
220
221
|
# File 'lib/redmine/menu_manager.rb', line 219
def items()
@items[.to_sym] || MenuNode.new(:root, {})
end
|
.map(menu_name) ⇒ Object
209
210
211
212
213
214
215
216
217
|
# File 'lib/redmine/menu_manager.rb', line 209
def map()
@items ||= {}
mapper = Mapper.new(.to_sym, @items)
if block_given?
yield mapper
else
mapper
end
end
|