Exception: I18n::UnsupportedMethod

Inherits:
ArgumentError show all
Defined in:
lib/i18n/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_klassObject (readonly)

Returns the value of attribute backend_klass.



125
126
127
# File 'lib/i18n/exceptions.rb', line 125

def backend_klass
  @backend_klass
end

#methodObject (readonly)

Returns the value of attribute method.



125
126
127
# File 'lib/i18n/exceptions.rb', line 125

def method
  @method
end

#msgObject (readonly)

Returns the value of attribute msg.



125
126
127
# File 'lib/i18n/exceptions.rb', line 125

def msg
  @msg
end