Exception: I18n::UnsupportedMethod

Inherits:
ArgumentError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/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.



116
117
118
119
120
121
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 116

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.



115
116
117
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 115

def backend_klass
  @backend_klass
end

#methodObject (readonly)

Returns the value of attribute method.



115
116
117
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 115

def method
  @method
end

#msgObject (readonly)

Returns the value of attribute msg.



115
116
117
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/i18n-1.12.0/lib/i18n/exceptions.rb', line 115

def msg
  @msg
end