Exception: Pluralizr::InvalidTypeError

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 isn’t a String. For example, integers, boolean values, arrays, etc.

Instance Method Summary collapse

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