Class: Dedalus::PatternLibrary::ApplicationView
Instance Attribute Summary collapse
Instance Method Summary
collapse
#click, #compose, #cursor, #dimensions, #initialize, #mouse_position, #render
Instance Attribute Details
#library_view ⇒ Object
Returns the value of attribute library_view.
4
5
6
|
# File 'lib/dedalus/pattern_library/application_view.rb', line 4
def library_view
@library_view
end
|
Instance Method Details
#app_screen ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/dedalus/pattern_library/application_view.rb', line 6
def app_screen
ApplicationScreen.new(app_template).hydrate(
library_section_tabs: library_view.library_section_tabs,
current_entry_name: current_entry_name,
library_sections: library_view.library_sections,
library_items: library_view.library_items
)
end
|
#app_template ⇒ Object
15
16
17
|
# File 'lib/dedalus/pattern_library/application_view.rb', line 15
def app_template
ApplicationTemplate.new
end
|
#current_entry_name ⇒ Object
19
20
21
|
# File 'lib/dedalus/pattern_library/application_view.rb', line 19
def current_entry_name
@current_entry_name ||= "Welcome"
end
|
#route_to(section_name) ⇒ Object
23
24
25
|
# File 'lib/dedalus/pattern_library/application_view.rb', line 23
def route_to(section_name)
@current_entry_name = section_name
end
|