Spec-Zone.ru › Ruby 3

класс ExceptionForMatrix::ErrOperationNotDefined

Родитель:
StandardError

Публичные методы класса

new(vals) Показать исходный код
# File lib/matrix.rb, line 39
def initialize(vals)
  if vals.is_a?(Array)
    super("Operation(#{vals[0]}) can't be defined: #{vals[1]} op #{vals[2]}")
  else
    super(vals)
  end
end
Вызывает метод родительского класса Exception::new

Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API