Exception: Pluralizr::TooManyWordsError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Pluralizr::TooManyWordsError
- 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
-
#initialize(msg = "argument contains too many words") ⇒ TooManyWordsError
constructor
A new instance of TooManyWordsError.
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 |