Class: Maglev::Uikit::AppLayout::LayoutComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Maglev::Uikit::AppLayout::LayoutComponent
- Defined in:
- app/components/maglev/uikit/app_layout/layout_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:) ⇒ LayoutComponent
constructor
A new instance of LayoutComponent.
Constructor Details
#initialize(page:, root_path:) ⇒ LayoutComponent
Returns a new instance of LayoutComponent.
12 13 14 15 |
# File 'app/components/maglev/uikit/app_layout/layout_component.rb', line 12 def initialize(page:, root_path:) @page = page @root_path = root_path end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
10 11 12 |
# File 'app/components/maglev/uikit/app_layout/layout_component.rb', line 10 def page @page end |
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
10 11 12 |
# File 'app/components/maglev/uikit/app_layout/layout_component.rb', line 10 def root_path @root_path end |