Class: Aerogel::Admin::Menu

Inherits:
Object
  • Object
show all
Defined in:
lib/aerogel/admin/menu.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMenu

Returns a new instance of Menu.



4
5
6
# File 'lib/aerogel/admin/menu.rb', line 4

def initialize()
  @items = []
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



3
4
5
# File 'lib/aerogel/admin/menu.rb', line 3

def items
  @items
end

Class Method Details

.instanceObject



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