class Golumn::ArrayGrid
main app
Public Class Methods
new(data:)
click to toggle source
# File lib/golumn/array_grid.rb, line 6 def initialize(data:) @data = data end
Public Instance Methods
[](i, j)
click to toggle source
# File lib/golumn/array_grid.rb, line 18 def [](i, j) @data[i][j] end
[]=(i, j, value)
click to toggle source
# File lib/golumn/array_grid.rb, line 22 def []=(i, j, value) @data[i][j] = value end
cols()
click to toggle source
# File lib/golumn/array_grid.rb, line 14 def cols @data.first.size end
rows()
click to toggle source
# File lib/golumn/array_grid.rb, line 10 def rows @data.size end
typename(*_)
click to toggle source
# File lib/golumn/array_grid.rb, line 26 def typename(*_) :string end