Class: I18n::BadInflectionKind

Inherits:
InflectionConfigurationException show all
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

#locale

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

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

#messageObject



257
258
259
260
# File 'lib/i18n-inflector/errors.rb', line 257

def message
    "" << super <<
    "inflection kind #{@kind.inspect} has bad name or type"
end