Method: Satis::Menus::Menu#initialize
- Defined in:
- lib/satis/menus/menu.rb
#initialize(*args, **kwargs) {|_self| ... } ⇒ Menu
Returns a new instance of Menu.
7 8 9 10 11 12 13 14 15 |
# File 'lib/satis/menus/menu.rb', line 7 def initialize(*args, **kwargs) @options = args. @items = [] @scope = Array.wrap(args.first) @level = kwargs[:level] || 0 @event = kwargs[:event] || "mouseover" @show_scroll = kwargs[:show_scroll] || false yield self if block_given? end |