Exception: I18n::UnsupportedMethod
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::UnsupportedMethod
- Defined in:
- lib/i18n/exceptions.rb
Instance Attribute Summary collapse
-
#backend_klass ⇒ Object
readonly
Returns the value of attribute backend_klass.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(method, backend_klass, msg) ⇒ UnsupportedMethod
constructor
A new instance of UnsupportedMethod.
Constructor Details
#initialize(method, backend_klass, msg) ⇒ UnsupportedMethod
Returns a new instance of UnsupportedMethod.
126 127 128 129 130 131 |
# File 'lib/i18n/exceptions.rb', line 126 def initialize(method, backend_klass, msg) @method = method @backend_klass = backend_klass @msg = msg super "#{backend_klass} does not support the ##{method} method. #{msg}" end |
Instance Attribute Details
#backend_klass ⇒ Object (readonly)
Returns the value of attribute backend_klass.
125 126 127 |
# File 'lib/i18n/exceptions.rb', line 125 def backend_klass @backend_klass end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
125 126 127 |
# File 'lib/i18n/exceptions.rb', line 125 def method @method end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
125 126 127 |
# File 'lib/i18n/exceptions.rb', line 125 def msg @msg end |