Class: I18n::InflectionOptionNotFound
- Inherits:
-
InvalidOptionForKind
- Object
- ArgumentError
- InflectionException
- InflectionPatternException
- InvalidOptionForKind
- I18n::InflectionOptionNotFound
- Defined in:
- lib/i18n-inflector/errors.rb
Overview
This is raised when there is no kind given in options. The kind is determined by looking at token placed in a pattern.
Instance Attribute Summary
Attributes inherited from InvalidOptionForKind
Attributes inherited from InflectionPatternException
Attributes inherited from InflectionException
Instance Method Summary collapse
Methods inherited from InvalidOptionForKind
Methods inherited from InflectionPatternException
Methods inherited from InflectionException
Constructor Details
This class inherits a constructor from I18n::InvalidOptionForKind
Instance Method Details
#message ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/i18n-inflector/errors.rb', line 66 def kind = @kind.to_s unless kind.empty? kindmsg = if kind[0..0] == I18n::Inflector::Config::Markers::STRICT_KIND ":#{kind} (or :#{kind[1..]})" else kind.to_sym.inspect end end '' << super << "required option #{kindmsg} was not found" end |