Class: StompBase::LayoutComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/stomp_base/layout_component.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#call, #render?

Constructor Details

#initialize(title: nil, breadcrumbs: []) ⇒ LayoutComponent

Returns a new instance of LayoutComponent.



5
6
7
8
9
# File 'app/components/stomp_base/layout_component.rb', line 5

def initialize(title: nil, breadcrumbs: [])
  super()
  @title = title || t("layout.default_title")
  @breadcrumbs = breadcrumbs
end