Class: Maglev::Uikit::AppLayout::TopbarComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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