Exception: ExceptionForMatrix::ErrDimensionMismatch

Inherits:
StandardError
  • Object
show all
Defined in:
lib/matrix.rb

Instance Method Summary collapse

Constructor Details

#initialize(val = nil) ⇒ ErrDimensionMismatch

Returns a new instance of ErrDimensionMismatch.



19
20
21
22
23
24
25
# File 'lib/matrix.rb', line 19

def initialize(val = nil)
  if val
    super(val)
  else
    super("Dimension mismatch")
  end
end