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.
16 17 18 19 20 21 22 |
# File 'lib/i18n-inflector/errors.rb', line 16 def initialize(locale, token, kind) @locale = locale @token = token @kind = kind @key = nil super() end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
14 15 16 |
# File 'lib/i18n-inflector/errors.rb', line 14 def key @key end |
#kind ⇒ Object
Returns the value of attribute kind.
14 15 16 |
# File 'lib/i18n-inflector/errors.rb', line 14 def kind @kind end |
#token ⇒ Object
Returns the value of attribute token.
14 15 16 |
# File 'lib/i18n-inflector/errors.rb', line 14 def token @token end |