Class: Baldur::UiHelperSidebar::SidebarBuilder
- Inherits:
-
Object
- Object
- Baldur::UiHelperSidebar::SidebarBuilder
- Defined in:
- app/helpers/baldur/ui_helper_sidebar.rb
Instance Attribute Summary collapse
-
#footer_content ⇒ Object
readonly
Returns the value of attribute footer_content.
-
#header_content ⇒ Object
readonly
Returns the value of attribute header_content.
-
#mobile_footer_content ⇒ Object
readonly
Returns the value of attribute mobile_footer_content.
-
#mobile_header_content ⇒ Object
readonly
Returns the value of attribute mobile_header_content.
Instance Method Summary collapse
-
#initialize(view_context) ⇒ SidebarBuilder
constructor
A new instance of SidebarBuilder.
- #with_footer(&block) ⇒ Object
- #with_header(&block) ⇒ Object
- #with_mobile_footer(&block) ⇒ Object
- #with_mobile_header(&block) ⇒ Object
Constructor Details
#initialize(view_context) ⇒ SidebarBuilder
Returns a new instance of SidebarBuilder.
9 10 11 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 9 def initialize(view_context) @view_context = view_context end |
Instance Attribute Details
#footer_content ⇒ Object (readonly)
Returns the value of attribute footer_content.
7 8 9 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 7 def @footer_content end |
#header_content ⇒ Object (readonly)
Returns the value of attribute header_content.
7 8 9 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 7 def header_content @header_content end |
#mobile_footer_content ⇒ Object (readonly)
Returns the value of attribute mobile_footer_content.
7 8 9 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 7 def @mobile_footer_content end |
#mobile_header_content ⇒ Object (readonly)
Returns the value of attribute mobile_header_content.
7 8 9 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 7 def mobile_header_content @mobile_header_content end |
Instance Method Details
#with_footer(&block) ⇒ Object
18 19 20 21 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 18 def (&block) @footer_content = capture_slot(&block) nil end |
#with_header(&block) ⇒ Object
13 14 15 16 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 13 def with_header(&block) @header_content = capture_slot(&block) nil end |
#with_mobile_footer(&block) ⇒ Object
28 29 30 31 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 28 def (&block) @mobile_footer_content = capture_slot(&block) nil end |
#with_mobile_header(&block) ⇒ Object
23 24 25 26 |
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 23 def with_mobile_header(&block) @mobile_header_content = capture_slot(&block) nil end |