Class: ActionSuggester
- Inherits:
-
Object
- Object
- ActionSuggester
- Defined in:
- lib/action_suggester.rb
Instance Method Summary collapse
- #check(word) ⇒ Object
-
#initialize(dictionary) ⇒ ActionSuggester
constructor
A new instance of ActionSuggester.
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 |