Class: I18n::MisplacedInflectionToken

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

Overview

This is raised when an inflection token used in a pattern does not match an assumed kind determined by reading previous tokens from that pattern or by the given strict kind of a named pattern.

Instance Attribute Summary

Attributes inherited from InflectionPatternException

#pattern

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

Methods inherited from InflectionPatternException

#initialize

Methods inherited from InflectionException

#initialize

Constructor Details

This class inherits a constructor from I18n::InflectionPatternException

Instance Method Details

#messageObject



135
136
137
138
139
# File 'lib/i18n-inflector/errors.rb', line 135

def message
  '' << super <<
    "token #{@token.to_s.inspect} " \
    "is not of the expected kind #{@kind.inspect}"
end