Method: CDK::MATRIX#getCell

Defined in:
lib/cdk/components/matrix.rb

#getCell(row, col) ⇒ Object

This gets the value of a matrix cell.



1116
1117
1118
1119
1120
1121
1122
# File 'lib/cdk/components/matrix.rb', line 1116

def getCell(row, col)
  # Make sure the row/col combination is within the matrix.
  if row > @rows || col > @cols || row <= 0 || col <= 0
    return 0
  end
  return @info[row][col]
end