Class: Table
- Inherits:
-
Object
- Object
- Table
- Defined in:
- lib/table.rb
Instance Method Summary collapse
- #[](x, y = 0, z = 0) ⇒ Object
- #[]=(x, y = 0, z = 0, value = nil) ⇒ Object
-
#initialize(xsize, ysize = 1, zsize = 1) ⇒ Table
constructor
A new instance of Table.
- #resize(xsize, ysize = nil, zsize = nil) ⇒ Object
- #xsize ⇒ Object
- #ysize ⇒ Object
- #zsize ⇒ Object
Constructor Details
#initialize(xsize, ysize = 1, zsize = 1) ⇒ Table
Returns a new instance of Table.
3 4 5 |
# File 'lib/table.rb', line 3 def initialize(xsize, ysize = 1, zsize = 1) fail NotImplementedError end |
Instance Method Details
#[](x, y = 0, z = 0) ⇒ Object
23 24 25 |
# File 'lib/table.rb', line 23 def [](x, y = 0, z = 0) fail NotImplementedError end |
#[]=(x, y = 0, z = 0, value = nil) ⇒ Object
27 28 29 |
# File 'lib/table.rb', line 27 def []=(x, y = 0, z = 0, value = nil) fail NotImplementedError end |
#resize(xsize, ysize = nil, zsize = nil) ⇒ Object
7 8 9 |
# File 'lib/table.rb', line 7 def resize(xsize, ysize = nil, zsize = nil) fail NotImplementedError end |
#xsize ⇒ Object
11 12 13 |
# File 'lib/table.rb', line 11 def xsize fail NotImplementedError end |
#ysize ⇒ Object
15 16 17 |
# File 'lib/table.rb', line 15 def ysize fail NotImplementedError end |
#zsize ⇒ Object
19 20 21 |
# File 'lib/table.rb', line 19 def zsize fail NotImplementedError end |