Class: SL::SpellSearch
- Inherits:
-
Object
- Object
- SL::SpellSearch
- Defined in:
- lib/searchlink/searches/spelling.rb
Overview
Spelling Search
Class Method Summary collapse
Class Method Details
.search(_, search_terms, link_text) ⇒ Object
17 18 19 20 21 |
# File 'lib/searchlink/searches/spelling.rb', line 17 def search(_, search_terms, link_text) title = SL.spell(search_terms) [title, title, link_text] end |
.settings ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/searchlink/searches/spelling.rb', line 7 def settings { trigger: "sp(?:ell)?", searches: [ %w[sp Spelling], ["spell", nil] ] } end |