Class: Maglev::Uikit::AppLayout::TopbarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Maglev::Uikit::AppLayout::TopbarComponent
- Defined in:
- app/components/maglev/uikit/app_layout/topbar_component.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Instance Method Summary collapse
-
#initialize(page:, root_path:) ⇒ TopbarComponent
constructor
A new instance of TopbarComponent.
Constructor Details
#initialize(page:, root_path:) ⇒ TopbarComponent
Returns a new instance of TopbarComponent.
14 15 16 17 |
# File 'app/components/maglev/uikit/app_layout/topbar_component.rb', line 14 def initialize(page:, root_path:) @page = page @root_path = root_path end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
12 13 14 |
# File 'app/components/maglev/uikit/app_layout/topbar_component.rb', line 12 def page @page end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
12 13 14 |
# File 'app/components/maglev/uikit/app_layout/topbar_component.rb', line 12 def root_path @root_path end |