Class: Arclight::RepositoryBreadcrumbComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/arclight/repository_breadcrumb_component.rb

Overview

Draws the repository breadcrumb item for a search result

Instance Method Summary collapse

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_pathObject



13
14
15
# File 'app/components/arclight/repository_breadcrumb_component.rb', line 13

def repository_path
  @document.repository_config&.slug
end