W3cubDocs

/Ruby 3

class ExceptionForMatrix::ErrNotRegular

Parent:
StandardError

Public Class Methods

new(val = nil) Show source
# File lib/matrix.rb, line 29
def initialize(val = nil)
  if val
    super(val)
  else
    super("Not Regular Matrix")
  end
end
Calls superclass method Exception::new

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