Class: Ragdoll::NavbarComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Ragdoll::NavbarComponent
- Defined in:
- app/components/ragdoll/navbar_component.rb
Instance Method Summary collapse
-
#initialize(brand_text: 'Ragdoll Engine', brand_path: nil) ⇒ NavbarComponent
constructor
A new instance of NavbarComponent.
Constructor Details
#initialize(brand_text: 'Ragdoll Engine', brand_path: nil) ⇒ NavbarComponent
5 6 7 8 |
# File 'app/components/ragdoll/navbar_component.rb', line 5 def initialize(brand_text: 'Ragdoll Engine', brand_path: nil) @brand_text = brand_text @brand_path = brand_path || main_app.root_path end |