Exception: Pluralizr::InvalidStringError

Inherits:
TypeError
  • Object
show all
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

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