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.



64
65
66
67
# File 'lib/i18n-inflector/errors.rb', line 64

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.



62
63
64
# File 'lib/i18n-inflector/errors.rb', line 62

def option
  @option
end