Class: Aerogel::Admin::Menu
- Inherits:
-
Object
- Object
- Aerogel::Admin::Menu
- Defined in:
- lib/aerogel/admin/menu.rb
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Menu
constructor
A new instance of Menu.
Constructor Details
#initialize ⇒ Menu
Returns a new instance of Menu.
4 5 6 |
# File 'lib/aerogel/admin/menu.rb', line 4 def initialize() @items = [] end |
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
3 4 5 |
# File 'lib/aerogel/admin/menu.rb', line 3 def items @items end |
Class Method Details
.instance ⇒ Object
8 9 10 |
# File 'lib/aerogel/admin/menu.rb', line 8 def self.instance @instance ||= self.new end |
.reset! ⇒ Object
12 13 14 |
# File 'lib/aerogel/admin/menu.rb', line 12 def self.reset! instance.items.clear end |