Class: Spellr::NullSuggester

Inherits:
Object
  • Object
show all
Defined in:
lib/spellr/null_suggester.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_wordlist) ⇒ NullSuggester

Returns a new instance of NullSuggester.



19
# File 'lib/spellr/null_suggester.rb', line 19

def initialize(_wordlist); end

Class Method Details

.fast_suggestions(_token) ⇒ Object



10
11
12
# File 'lib/spellr/null_suggester.rb', line 10

def fast_suggestions(_token)
  []
end

.slow?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/spellr/null_suggester.rb', line 14

def slow?
  true
end

.suggestions(_token) ⇒ Object



6
7
8
# File 'lib/spellr/null_suggester.rb', line 6

def suggestions(_token)
  []
end

Instance Method Details

#suggestions(_term) ⇒ Object



21
22
23
# File 'lib/spellr/null_suggester.rb', line 21

def suggestions(_term)
  []
end