Class: Baldur::UiHelperSidebar::SidebarBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/baldur/ui_helper_sidebar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute footer_content.



7
8
9
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 7

def footer_content
  @footer_content
end

#header_contentObject (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

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
  @mobile_footer_content
end

#mobile_header_contentObject (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



18
19
20
21
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 18

def with_footer(&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


28
29
30
31
# File 'app/helpers/baldur/ui_helper_sidebar.rb', line 28

def with_mobile_footer(&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