Exception: Pluralizr::InvalidStringError
- Inherits:
-
TypeError
- Object
- TypeError
- Pluralizr::InvalidStringError
- Defined in:
- lib/pluralizr/exceptions.rb
Overview
A TypeError meant to inform users when the object passed into the Pluralizr.pluralize method doesn’t begin with a letter. For example, words like 32numbersfirst
and .specialcharactersfirst
Instance Method Summary collapse
-
#initialize(msg = "string must begin with a letter") ⇒ InvalidStringError
constructor
A new instance of InvalidStringError.
Constructor Details
#initialize(msg = "string must begin with a letter") ⇒ InvalidStringError
Returns a new instance of InvalidStringError.
16 17 18 |
# File 'lib/pluralizr/exceptions.rb', line 16 def initialize(msg="string must begin with a letter") super end |