lib/ruby_rich/bootstrap.rb
def new_grid(shape)

      if (shape.size != 2)
        raise "Grid specification invalid - rank must be 2 and not: #{shape.size}"
      end

      MDArray.string(shape)

    end
#------------------------------------------------------------------------------------
# String MDArray is actually an Object MDArray, so, any object can be added to it
#------------------------------------------------------------------------------------
String MDArray is actually an Object MDArray, so, any object can be added to it
String MDArray is actually an Object MDArray so any object can be added to it
def new_grid(shape)
      if (shape.size != 2)
        raise "Grid specification invalid - rank must be 2 and not: #{shape.size}"
      end
      MDArray.string(shape)
    end
def new_grid ( shape ) if ( shape . size != 2 ) raise "Grid specification invalid - rank must be 2 and not: #{shape.size}" end MDArray . string ( shape ) end
String MDArray is actually an Object MDArray, so, any object can be added to it
String MDArray is actually an Object MDArray so any object can be added to it
shape