Exception: Pluralizr::InvalidTypeError
- Inherits:
-
TypeError
- Object
- TypeError
- Pluralizr::InvalidTypeError
- Defined in:
- lib/pluralizr/exceptions.rb
Overview
A TypeError meant to inform users when the object passed into the Pluralizr.pluralize method isn’t a String. For example, integers, boolean values, arrays, etc.
Instance Method Summary collapse
-
#initialize(msg = "argument must be a String") ⇒ InvalidTypeError
constructor
A new instance of InvalidTypeError.
Constructor Details
#initialize(msg = "argument must be a String") ⇒ InvalidTypeError
Returns a new instance of InvalidTypeError.
7 8 9 |
# File 'lib/pluralizr/exceptions.rb', line 7 def initialize(msg="argument must be a String") super end |