Class: ActionSuggester

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

Instance Method Summary collapse

Constructor Details

#initialize(dictionary) ⇒ ActionSuggester

Returns a new instance of ActionSuggester.



4
5
6
# File 'lib/action_suggester.rb', line 4

def initialize(dictionary)
	@dictionary = dictionary
end

Instance Method Details

#check(word) ⇒ Object



8
9
10
# File 'lib/action_suggester.rb', line 8

def check(word)
	spellchecker.correct(word)
end