Class: Dedalus::PatternLibrary::ApplicationHeader
- Defined in:
- lib/dedalus/pattern_library/organisms/app_header.rb
Instance Attribute Summary collapse
-
#subtitle ⇒ Object
Returns the value of attribute subtitle.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from Element
#background_color, #color, #height, #height_percent, #margin, #offset, #position, #shown, #width, #width_percent, #z_order
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
#subtitle ⇒ Object
Returns the value of attribute subtitle.
4 5 6 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 4 def subtitle @subtitle end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 4 def title @title end |
Class Method Details
.description ⇒ Object
17 18 19 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 17 def self.description "An application header" end |
.example_data ⇒ Object
21 22 23 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 21 def self.example_data { title: "Fake app", description: "Hello world" } end |
Instance Method Details
#padding ⇒ Object
13 14 15 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 13 def padding 16 end |
#show ⇒ Object
6 7 8 9 10 11 |
# File 'lib/dedalus/pattern_library/organisms/app_header.rb', line 6 def show [ heading, subheading ] end |