Class: Dedalus::PatternLibrary::ApplicationSidebar

Inherits:
Organism show all
Defined in:
lib/dedalus/pattern_library/organisms/app_sidebar.rb

Instance Attribute Summary collapse

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_moleculesObject

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

.descriptionObject



14
15
16
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 14

def self.description
  "A sidebar for an application"
end

.example_dataObject



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

#paddingObject



10
11
12
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 10

def padding
  0
end

#showObject



6
7
8
# File 'lib/dedalus/pattern_library/organisms/app_sidebar.rb', line 6

def show
  self.library_section_tab_molecules
end