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.



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

#messageObject



129
130
131
# File 'lib/i18n-inflector/errors.rb', line 129

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