Class: Tiletanic::Coords
- Inherits:
-
Struct
- Object
- Struct
- Tiletanic::Coords
- 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.
Instance Method Summary collapse
-
#initialize ⇒ Coords
constructor
A new instance of Coords.
Constructor Details
#initialize ⇒ Coords
Returns a new instance of Coords.
12 13 14 15 |
# File 'lib/tiletanic/base.rb', line 12 def initialize(...) super freeze end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x
11 12 13 |
# File 'lib/tiletanic/base.rb', line 11 def x @x end |
#y ⇒ Object
Returns the value of attribute y
11 12 13 |
# File 'lib/tiletanic/base.rb', line 11 def y @y end |