Exception: ExceptionForMatrix::ErrDimensionMismatch
- Inherits:
-
StandardError
- Object
- StandardError
- ExceptionForMatrix::ErrDimensionMismatch
- Defined in:
- lib/matrix.rb
Instance Method Summary collapse
-
#initialize(val = nil) ⇒ ErrDimensionMismatch
constructor
A new instance of ErrDimensionMismatch.
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 |