Sha256: 12387a039079bc534180691fb5273f250e7392553dd677989bbdfe90b98ef384

Contents?: true

Size: 353 Bytes

Versions: 6

Compression:

Stored size: 353 Bytes

Contents

module McDelta
    class DataTable
        attr_private_accessor :data

        def initialize(data:)
            self.data = data
        end

        def element(row:, column:)
            data[row][column]
        end

        def columnsCount 
            data[0].size
        end

        def rowsCount
            data.size
        end
    end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
shnaider_code-2.0.1 lib/source/data_table.rb
shnaider_code-2.0.0 lib/source/data_table.rb
mc_delta-1.0.0 lib/source/data_table.rb
mc_delta-0.9.0 lib/source/data_table.rb
mc_delta-0.8.0 lib/source/data_table.rb
mc_delta-0.7.0 lib/source/data_table.rb