Class: I18n::InvalidInflectionOption
- Inherits:
-
InflectionPatternException
- Object
- ArgumentError
- InflectionException
- InflectionPatternException
- I18n::InvalidInflectionOption
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This is raised when an inflection option name is invalid (contains reserved symbols).
Instance Attribute Summary
Attributes inherited from InflectionPatternException
Attributes inherited from InflectionException
Instance Method Summary collapse
-
#initialize(locale, pattern, option) ⇒ InvalidInflectionOption
constructor
A new instance of InvalidInflectionOption.
- #message ⇒ Object
Constructor Details
#initialize(locale, pattern, option) ⇒ InvalidInflectionOption
Returns a new instance of InvalidInflectionOption.
125 126 127 |
# File 'lib/i18n-inflector/errors.rb', line 125 def initialize(locale, pattern, option) super(locale, pattern, nil, option) end |
Instance Method Details
#message ⇒ Object
129 130 131 |
# File 'lib/i18n-inflector/errors.rb', line 129 def "" << super << "inflection option #{@kind.inspect} is invalid" end |