Class: Belajar::Views::MainMenu
- Inherits:
-
Object
- Object
- Belajar::Views::MainMenu
- Includes:
- Belajar::Views
- Defined in:
- lib/belajar/views/main_menu.rb
Overview
Subscription: ‘first.subscribe(second)` means first subscribes second on the first’s broadcast. second has to have method that is broadcasted.
Instance Attribute Summary collapse
-
#chapters_menu ⇒ Object
readonly
Returns the value of attribute chapters_menu.
-
#courses_menu ⇒ Object
readonly
Returns the value of attribute courses_menu.
-
#task_view ⇒ Object
readonly
Returns the value of attribute task_view.
-
#units_menu ⇒ Object
readonly
Returns the value of attribute units_menu.
Instance Method Summary collapse
-
#initialize ⇒ MainMenu
constructor
A new instance of MainMenu.
Methods included from Belajar::Views
Constructor Details
#initialize ⇒ MainMenu
Returns a new instance of MainMenu.
13 14 15 16 17 18 19 20 21 |
# File 'lib/belajar/views/main_menu.rb', line 13 def initialize @courses_menu = Views::CoursesMenu.new @chapters_menu = Views::ChaptersMenu.new @units_menu = Views::UnitsMenu.new @task_view = Views::TaskView.new subscribe_events .enter end |
Instance Attribute Details
#chapters_menu ⇒ Object (readonly)
Returns the value of attribute chapters_menu.
11 12 13 |
# File 'lib/belajar/views/main_menu.rb', line 11 def @chapters_menu end |
#courses_menu ⇒ Object (readonly)
Returns the value of attribute courses_menu.
11 12 13 |
# File 'lib/belajar/views/main_menu.rb', line 11 def @courses_menu end |
#task_view ⇒ Object (readonly)
Returns the value of attribute task_view.
11 12 13 |
# File 'lib/belajar/views/main_menu.rb', line 11 def task_view @task_view end |
#units_menu ⇒ Object (readonly)
Returns the value of attribute units_menu.
11 12 13 |
# File 'lib/belajar/views/main_menu.rb', line 11 def @units_menu end |