Class: Alacarte::Menus
- Inherits:
-
Hash
- Object
- Hash
- Alacarte::Menus
- Defined in:
- lib/alacarte/menus.rb
Overview
Alacarte::Menus provides a dsl for building menus.
Instance Method Summary collapse
-
#draw(&block) ⇒ Object
Draw the menu.
-
#menu(name, *args, &block) ⇒ Object
Define a menu in a draw block.
Instance Method Details
#draw(&block) ⇒ Object
Draw the menu
6 7 8 |
# File 'lib/alacarte/menus.rb', line 6 def draw(&block) self.instance_exec(&block) end |