Class: Dedalus::PatternLibrary::ApplicationSidebar
- Defined in:
- lib/dedalus/pattern_library/organisms/app_sidebar.rb
Instance Attribute Summary collapse
-
#library_section_tab_molecules ⇒ Object
Returns the value of attribute library_section_tab_molecules.
Attributes inherited from Element
#background_color, #color, #height, #height_percent, #margin, #offset, #position, #width, #width_percent
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Element
#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #initialize, #record?, #tiny_font, #view, #window
Constructor Details
This class inherits a constructor from Dedalus::Element
Instance Attribute Details
#library_section_tab_molecules ⇒ Object
Returns the value of attribute library_section_tab_molecules.
4 5 6 |
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 4 def library_section_tab_molecules @library_section_tab_molecules end |
Class Method Details
.description ⇒ Object
14 15 16 |
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 14 def self.description "A sidebar for an application" end |
.example_data ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 18 def self.example_data { library_section_tab_molecules: [ LibrarySectionTab.new(LibrarySectionTab.example_data), LibrarySectionTab.new(LibrarySectionTab.example_data), LibrarySectionTab.new(LibrarySectionTab.example_data) ] } end |
Instance Method Details
#padding ⇒ Object
10 11 12 |
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 10 def padding 0 end |
#show ⇒ Object
6 7 8 |
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 6 def show self.library_section_tab_molecules end |