Class: I18n::InflectionConfigurationException Abstract

Inherits:
InflectionException show all
Defined in:
lib/i18n-inflector/errors.rb

Overview

This class is abstract.

It is a parent class for all exceptions related to configuration data of inflections that is processed.

Instance Attribute Summary collapse

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

Methods inherited from InflectionException

#initialize

Constructor Details

This class inherits a constructor from I18n::InflectionException

Instance Attribute Details

#localeObject

Returns the value of attribute locale.



49
50
51
# File 'lib/i18n-inflector/errors.rb', line 49

def locale
  @locale
end

Instance Method Details

#messageObject



51
52
53
54
# File 'lib/i18n-inflector/errors.rb', line 51

def message
  mkey = @key.nil? ? ".i18n.inflections.#{@kind}" : ".#{@key}"
  "#{@locale}#{mkey}: "
end