Class: Arclight::SearchResultTitleComponent

Inherits:
Blacklight::DocumentTitleComponent
  • Object
show all
Defined in:
app/components/arclight/search_result_title_component.rb

Overview

Render a document title for a search result

Instance Method Summary collapse

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

Returns:

  • (Boolean)


11
12
13
# File 'app/components/arclight/search_result_title_component.rb', line 11

def compact?
  @compact
end