Class: I18n::InflectionException Abstract

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

Overview

This class is abstract.

It is a parent class for all exceptions related to inflections.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale, token, kind) ⇒ InflectionException

Returns a new instance of InflectionException.



19
20
21
22
23
# File 'lib/i18n-inflector/errors.rb', line 19

def initialize(locale, token, kind)
  @locale, @token, @kind = locale, token, kind
  @key = nil
  super()
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



17
18
19
# File 'lib/i18n-inflector/errors.rb', line 17

def key
  @key
end

#kindObject

Returns the value of attribute kind.



16
17
18
# File 'lib/i18n-inflector/errors.rb', line 16

def kind
  @kind
end

#tokenObject

Returns the value of attribute token.



15
16
17
# File 'lib/i18n-inflector/errors.rb', line 15

def token
  @token
end