Exception: Pluralizr::TooManyWordsError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/pluralizr/exceptions.rb

Overview

An ArgumentError meant to inform users when the object passed into the Pluralizr.pluralize method is a String, but contains more than one word. For example, strings like "More than one word".

Instance Method Summary collapse

Constructor Details

#initialize(msg = "argument contains too many words") ⇒ TooManyWordsError

Returns a new instance of TooManyWordsError.



25
26
27
# File 'lib/pluralizr/exceptions.rb', line 25

def initialize(msg="argument contains too many words")
  super
end