Class: I18n::InvalidInflectionOption

Inherits:
InflectionPatternException show all
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

#pattern

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

Constructor Details

#initialize(locale, pattern, option) ⇒ InvalidInflectionOption

Returns a new instance of InvalidInflectionOption.



110
111
112
# File 'lib/i18n-inflector/errors.rb', line 110

def initialize(locale, pattern, option)
  super(locale, pattern, nil, option)
end

Instance Method Details

#messageObject



114
115
116
# File 'lib/i18n-inflector/errors.rb', line 114

def message
  '' << super << "inflection option #{@kind.inspect} is invalid"
end