Class: I18n::InvalidOptionForKind Abstract
- Inherits:
-
InflectionPatternException
- Object
- ArgumentError
- InflectionException
- InflectionPatternException
- I18n::InvalidOptionForKind
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This class is abstract.
It is a parent class for exceptions raised when inflection option is bad or missing.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#option ⇒ Object
Returns the value of attribute option.
Attributes inherited from InflectionPatternException
Attributes inherited from InflectionException
Instance Method Summary collapse
-
#initialize(locale, pattern, token, kind, option) ⇒ InvalidOptionForKind
constructor
A new instance of InvalidOptionForKind.
Methods inherited from InflectionPatternException
Constructor Details
#initialize(locale, pattern, token, kind, option) ⇒ InvalidOptionForKind
Returns a new instance of InvalidOptionForKind.
64 65 66 67 |
# File 'lib/i18n-inflector/errors.rb', line 64 def initialize(locale, pattern, token, kind, option) super(locale, pattern, token, kind) @option = option end |
Instance Attribute Details
#option ⇒ Object
Returns the value of attribute option.
62 63 64 |
# File 'lib/i18n-inflector/errors.rb', line 62 def option @option end |