Class: Arclight::RepositoryBreadcrumbComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Arclight::RepositoryBreadcrumbComponent
- Defined in:
- app/components/arclight/repository_breadcrumb_component.rb
Overview
Draws the repository breadcrumb item for a search result
Instance Method Summary collapse
-
#initialize(document:) ⇒ RepositoryBreadcrumbComponent
constructor
A new instance of RepositoryBreadcrumbComponent.
- #repository_path ⇒ Object
Constructor Details
#initialize(document:) ⇒ RepositoryBreadcrumbComponent
Returns a new instance of RepositoryBreadcrumbComponent.
6 7 8 9 |
# File 'app/components/arclight/repository_breadcrumb_component.rb', line 6 def initialize(document:) super @document = document end |
Instance Method Details
#repository_path ⇒ Object
13 14 15 |
# File 'app/components/arclight/repository_breadcrumb_component.rb', line 13 def repository_path @document.repository_config&.slug end |