Class: VeryGood::Cursor
- Inherits:
-
Object
- Object
- VeryGood::Cursor
- Defined in:
- lib/very_good/cursor.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Cursor
constructor
A new instance of Cursor.
Constructor Details
#initialize(x, y) ⇒ Cursor
Returns a new instance of Cursor.
3 4 5 6 |
# File 'lib/very_good/cursor.rb', line 3 def initialize(x, y) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
8 9 10 |
# File 'lib/very_good/cursor.rb', line 8 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
8 9 10 |
# File 'lib/very_good/cursor.rb', line 8 def y @y end |