Class: Backend::BaseHelper::Menu

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/backend/base_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMenu

Returns a new instance of Menu.


141
142
143
# File 'app/helpers/backend/base_helper.rb', line 141

def initialize
  @items = []
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items


139
140
141
# File 'app/helpers/backend/base_helper.rb', line 139

def items
  @items
end

Instance Method Details


145
146
147
# File 'app/helpers/backend/base_helper.rb', line 145

def link(name, url = {}, options = {})
  @items << [name, url, options]
end