Exception: ExceptionForMatrix::ErrOperationNotDefined

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

Instance Method Summary collapse

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