class ExceptionForMatrix::ErrDimensionMismatch

Parent:
StandardError

Public Class Methods

new(val = nil) Show source
# File lib/matrix.rb, line 19
def initialize(val = nil)
  if val
    super(val)
  else
    super("Dimension mismatch")
  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.