Class: I18n::BadInflectionKind
- Inherits:
-
InflectionConfigurationException
- Object
- ArgumentError
- InflectionException
- InflectionConfigurationException
- I18n::BadInflectionKind
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This is raised when an inflection kind has a bad name or is not a root for a tree of tokens.
Instance Attribute Summary
Attributes inherited from InflectionConfigurationException
Attributes inherited from InflectionException
Instance Method Summary collapse
-
#initialize(locale, kind) ⇒ BadInflectionKind
constructor
A new instance of BadInflectionKind.
- #message ⇒ Object
Constructor Details
#initialize(locale, kind) ⇒ BadInflectionKind
Returns a new instance of BadInflectionKind.
253 254 255 |
# File 'lib/i18n-inflector/errors.rb', line 253 def initialize(locale, kind) super(locale, nil, kind) end |
Instance Method Details
#message ⇒ Object
257 258 259 260 |
# File 'lib/i18n-inflector/errors.rb', line 257 def "" << super << "inflection kind #{@kind.inspect} has bad name or type" end |