Class: I18n::InflectionOptionIncorrect

Inherits:
InvalidOptionForKind show all
Defined in:
lib/i18n-inflector/errors.rb

Overview

This exception will be raised when a required option, describing token selected for a kind contains a token that is not of the given kind.

Instance Attribute Summary

Attributes inherited from InvalidOptionForKind

#option

Attributes inherited from InflectionPatternException

#pattern

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

Methods inherited from InvalidOptionForKind

#initialize

Methods inherited from InflectionPatternException

#initialize

Methods inherited from InflectionException

#initialize

Constructor Details

This class inherits a constructor from I18n::InvalidOptionForKind

Instance Method Details

#messageObject


94
95
96
97
98
# File 'lib/i18n-inflector/errors.rb', line 94

def message
  "" << super <<
  "required value #{@option.inspect} of option #{@kind.inspect} " \
  "does not match any token"
end