class SynonymScrapper::WordFormatError

Exception thrown when the word is not a string.

Public Class Methods

new(word = "") click to toggle source
Calls superclass method
# File lib/synonym_scrapper.rb, line 28
def initialize(word = "")
  msg = "The word #{word} is not a string, it must be a string."
  super msg
end