Class: ActiveMenu::Menu
Instance Attribute Summary
Attributes inherited from Node
#children, #id, #options, #parent
Instance Method Summary collapse
-
#initialize(*args) ⇒ Menu
constructor
A new instance of Menu.
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