Exception: ExceptionForMatrix::ErrOperationNotDefined
- Inherits:
-
StandardError
- Object
- StandardError
- ExceptionForMatrix::ErrOperationNotDefined
- Defined in:
- lib/matrix.rb
Instance Method Summary collapse
-
#initialize(vals) ⇒ ErrOperationNotDefined
constructor
A new instance of ErrOperationNotDefined.
Constructor Details
#initialize(vals) ⇒ ErrOperationNotDefined
Returns a new instance of ErrOperationNotDefined.
39 40 41 42 43 44 45 |
# 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 |