Sha256: 9af5a0ab53062ee5f64d3ab327941729485a60c5f65485d9ee27e6ed4e6f507d

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

class DataTable

	attr_accessor :data

	def initialize(data)
		self.data = data
	end

	def get_cell(row,col)
		self.data[row][col]
	end

	def num_columns
		self.data[0].length
	end

	def num_rows
		self.data.length
	end

	def to_2d_array
		data.dup
	end

end

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
mc_gem3-1.0.2 lib/source/Data_table.rb
mc_gem3-1.0.0 lib/source/Data_table.rb
mc_gem2-1.1.5 lib/source/Data_table.rb
mc_gem2-1.1.4 lib/source/Data_table.rb
mvcStudentXD-1.2.3 lib/source/containers/Data_table.rb
mc_gem-0.0.1 mc_gem/lib/source/containers/Data_table.rb
mvcStudentXD-1.2.2 lib/source/containers/Data_table.rb
mvcStudentXD-1.2.1 mvcStudentXD/lib/source/containers/Data_table.rb
mvcStudentXD-1.2.0 lib/source/containers/Data_table.rb
mvcStudentXD-1.1.3 lib/source/containers/Data_table.rb
mvcStudentXD-1.1.2 lib/containers/Data_table.rb
mvcStudentXD-1.1.1 lib/containers/Data_table.rb
mvcStudentXD-1.0.1 lib/Data_table.rb
model_XD-0.1.0 lib/Data_table.rb