Exception: Kotoshu::SpellcheckError
- Defined in:
- lib/kotoshu/core/exceptions.rb
Overview
Error raised during spell checking operations.
Instance Attribute Summary collapse
-
#word ⇒ String?
readonly
The word being checked.
Instance Method Summary collapse
-
#initialize(message, word: nil) ⇒ SpellcheckError
constructor
Create a new spellcheck error.
Constructor Details
#initialize(message, word: nil) ⇒ SpellcheckError
Create a new spellcheck error.
77 78 79 80 |
# File 'lib/kotoshu/core/exceptions.rb', line 77 def initialize(, word: nil) @word = word super() end |
Instance Attribute Details
#word ⇒ String? (readonly)
Returns The word being checked.
83 84 85 |
# File 'lib/kotoshu/core/exceptions.rb', line 83 def word @word end |