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.


154
155
156
# File 'app/helpers/backend/base_helper.rb', line 154

def initialize
  @items = []
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items


152
153
154
# File 'app/helpers/backend/base_helper.rb', line 152

def items
  @items
end

Instance Method Details


158
159
160
# File 'app/helpers/backend/base_helper.rb', line 158

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