Class: I18n::InvalidOptionForKind Abstract

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

Overview

This class is abstract.

It is a parent class for exceptions raised when inflection option is bad or missing.

Instance Attribute Summary collapse

Attributes inherited from InflectionPatternException

#pattern

Attributes inherited from InflectionException

#key, #kind, #token

Instance Method Summary collapse

Methods inherited from InflectionPatternException

#message

Constructor Details

#initialize(locale, pattern, token, kind, option) ⇒ InvalidOptionForKind

Returns a new instance of InvalidOptionForKind.



57
58
59
60
# File 'lib/i18n-inflector/errors.rb', line 57

def initialize(locale, pattern, token, kind, option)
  super(locale, pattern, token, kind)
  @option = option
end

Instance Attribute Details

#optionObject

Returns the value of attribute option.



55
56
57
# File 'lib/i18n-inflector/errors.rb', line 55

def option
  @option
end