Class: ActiveMenu::Menu

Inherits:
Node
  • Object
show all
Defined in:
lib/active_menu/menu.rb

Instance Attribute Summary

Attributes inherited from Node

#children, #id, #options, #parent

Instance Method Summary collapse

Methods inherited from Node

#child, #exists?, #get, #leave_children!, #method_missing, #option

Constructor Details

#initialize(*args) ⇒ Menu

Returns a new instance of Menu.



3
4
5
6
# File 'lib/active_menu/menu.rb', line 3

def initialize(*args)
  super(*args)
  self.visible = true
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveMenu::Node