Class: Arclight::SearchResultTitleComponent
- Inherits:
-
Blacklight::DocumentTitleComponent
- Object
- Blacklight::DocumentTitleComponent
- Arclight::SearchResultTitleComponent
- Defined in:
- app/components/arclight/search_result_title_component.rb
Overview
Render a document title for a search result
Instance Method Summary collapse
- #compact? ⇒ Boolean
-
#initialize(compact:, **args) ⇒ SearchResultTitleComponent
constructor
A new instance of SearchResultTitleComponent.
Constructor Details
#initialize(compact:, **args) ⇒ SearchResultTitleComponent
Returns a new instance of SearchResultTitleComponent.
6 7 8 9 |
# File 'app/components/arclight/search_result_title_component.rb', line 6 def initialize(compact:, **args) @compact = compact super(**args) end |
Instance Method Details
#compact? ⇒ Boolean
11 12 13 |
# File 'app/components/arclight/search_result_title_component.rb', line 11 def compact? @compact end |