Class: I18n::InflectionException Abstract
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- I18n::InflectionException
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This class is abstract.
It is a parent class for all exceptions related to inflections.
Direct Known Subclasses
InflectionConfigurationException, InflectionPatternException
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(locale, token, kind) ⇒ InflectionException
constructor
A new instance of InflectionException.
Constructor Details
#initialize(locale, token, kind) ⇒ InflectionException
Returns a new instance of InflectionException.
19 20 21 22 23 |
# File 'lib/i18n-inflector/errors.rb', line 19 def initialize(locale, token, kind) @locale, @token, @kind = locale, token, kind @key = nil super() end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
17 18 19 |
# File 'lib/i18n-inflector/errors.rb', line 17 def key @key end |
#kind ⇒ Object
Returns the value of attribute kind.
16 17 18 |
# File 'lib/i18n-inflector/errors.rb', line 16 def kind @kind end |
#token ⇒ Object
Returns the value of attribute token.
15 16 17 |
# File 'lib/i18n-inflector/errors.rb', line 15 def token @token end |