> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rgss-built-in-classes/table.md).

# Table

The multidimensional array class. Each element takes up 2 signed bytes, ranging from -32,768 to 32,767.

Ruby's [Array](/rgss-reference-manual/standard-library/built-in-classes/object/array.md) class does not run efficiently when handling large amounts of data, hence the inclusion of this class.

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Class Method

### Table.new(*xsize*\[*, ysize*\[*, zsize*]])

Creates a Table object. Specifies the size of each dimension in the multidimensional array. 1-, 2-, and 3-dimensional arrays are possible. Arrays with no parameters are also permitted.

## Methods

### resize(*xsize*\[*, ysize*\[*, zsize*]])

Change the size of the array. All data from before the size change is retained.

### xsize

### ysize

### zsize

Gets the sizes of each of the array's dimensions.

## Properties

### self\[*x*]

### self\[*x, y*]

### self\[*x, y, z*]

Accesses the array's elements. Pulls the same number of arguments as there are dimensions in the created array. Returns nil if the specified element does not exist.
