123456789_123456789_123456789_123456789_123456789_

Exception: ExceptionForMatrix::ErrOperationNotDefined

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • Object
Defined in: lib/matrix.rb

Class Method Summary

Constructor Details

.new(vals) ⇒ ErrOperationNotDefined

[ GitHub ]

  
# 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