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
232
233
234
|
# File 'lib/redmine/menu_manager.rb', line 232
def items()
@items[.to_sym] || MenuNode.new(:root, {})
end
|
.map(menu_name) ⇒ Object
222
223
224
225
226
227
228
229
230
|
# File 'lib/redmine/menu_manager.rb', line 222
def map()
@items ||= {}
mapper = Mapper.new(.to_sym, @items)
if block_given?
yield mapper
else
mapper
end
end
|