Class: Maglev::Uikit::AppLayout::LayoutComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/maglev/uikit/app_layout/layout_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pageObject (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_pathObject (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