Exception: I18n::UnsupportedMethod
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- I18n::UnsupportedMethod
- 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
-
#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.
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_klass ⇒ Object (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 |
#method ⇒ Object (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 |
#msg ⇒ Object (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 |