Class: Snake::Pos
- Inherits:
-
Struct
- Object
- Struct
- Snake::Pos
- Defined in:
- lib/ruby-snake/snake.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x
88 89 90 |
# File 'lib/ruby-snake/snake.rb', line 88 def x @x end |
#y ⇒ Object
Returns the value of attribute y
88 89 90 |
# File 'lib/ruby-snake/snake.rb', line 88 def y @y end |