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.



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

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

Instance Attribute Details

#keyObject

Returns the value of attribute key.



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

def key
  @key
end

#kindObject

Returns the value of attribute kind.



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

def kind
  @kind
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end