Class: Adva::View::Menu::Admin

Inherits:
Adva::View::Menu show all
Defined in:
lib/adva/view/menu/admin.rb

Direct Known Subclasses

Actions, Layouts::Admin::Top

Defined Under Namespace

Classes: Actions

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Adva::View::Menu

#item, #label, #to_html

Class Method Details

.id(id) ⇒ Object



7
8
9
# File 'lib/adva/view/menu/admin.rb', line 7

def self.id(id)
  write_inheritable_attribute(:id, id)
end

Instance Method Details

#buildObject



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/adva/view/menu/admin.rb', line 15

def build
  div :id => id, :class => 'menus' do
    ul :class => 'menu main' do
      main
      render_items
    end
    ul :class => 'menu right' do
      right
      render_items
    end
  end
end

#mainObject



28
29
# File 'lib/adva/view/menu/admin.rb', line 28

def main
end

#rightObject



31
32
# File 'lib/adva/view/menu/admin.rb', line 31

def right
end