Class: Dedalus::PatternLibrary::ApplicationScreen

Inherits:
Screen
  • Object
show all
Defined in:
lib/dedalus/pattern_library/screens/app_screen.rb

Instance Attribute Summary

Attributes inherited from Element

#background_color, #height, #height_percent, #margin, #padding, #position, #width, #width_percent

Instance Method Summary collapse

Methods inherited from Element

#big_font, #draw_bounding_box, #font, #huge_font, #view, #window

Constructor Details

#initialize(template) ⇒ ApplicationScreen

Returns a new instance of ApplicationScreen.



4
5
6
# File 'lib/dedalus/pattern_library/screens/app_screen.rb', line 4

def initialize(template)
  @template = template
end

Instance Method Details

#hydrate(library_section_tabs:, current_entry_name:, library_sections:, library_items:) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/dedalus/pattern_library/screens/app_screen.rb', line 12

def hydrate(library_section_tabs:, current_entry_name:, library_sections:, library_items:)
  @template.library_name = "Dedalus Pattern Library"
  @template.library_section_tabs = library_section_tabs
  @template.library_sections = library_sections
  @template.library_items = library_items
  @template.current_entry_name = current_entry_name
  self
end

#showObject



8
9
10
# File 'lib/dedalus/pattern_library/screens/app_screen.rb', line 8

def show
  @template.show
end