getmetatable( tbl )
Gets the metatable for a table.
tbl
The table.

Returns the table's metatable.

Examples

Based on the pixel class example in setmetatable:

p1 = pixel:new()
p1class = getmetatable(p1)

See also

Community content is available under CC-BY-SA unless otherwise noted.