Class: ConsoleShogi::GridPosition
- Inherits:
-
Struct
- Object
- Struct
- ConsoleShogi::GridPosition
- Defined in:
- lib/console_shogi/grid_position.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location
4 5 6 |
# File 'lib/console_shogi/grid_position.rb', line 4 def location @location end |
#x ⇒ Object
Returns the value of attribute x
4 5 6 |
# File 'lib/console_shogi/grid_position.rb', line 4 def x @x end |
#y ⇒ Object
Returns the value of attribute y
4 5 6 |
# File 'lib/console_shogi/grid_position.rb', line 4 def y @y end |