Class: Tiletanic::Tile
- Inherits:
-
Struct
- Object
- Struct
- Tiletanic::Tile
- Defined in:
- lib/tiletanic/base.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Method Summary collapse
-
#initialize ⇒ Tile
constructor
A new instance of Tile.
Constructor Details
#initialize ⇒ Tile
Returns a new instance of Tile.
5 6 7 8 |
# File 'lib/tiletanic/base.rb', line 5 def initialize(...) super freeze end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x
4 5 6 |
# File 'lib/tiletanic/base.rb', line 4 def x @x end |
#y ⇒ Object
Returns the value of attribute y
4 5 6 |
# File 'lib/tiletanic/base.rb', line 4 def y @y end |
#z ⇒ Object
Returns the value of attribute z
4 5 6 |
# File 'lib/tiletanic/base.rb', line 4 def z @z end |