Class: VeryGood::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/very_good/cursor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xObject (readonly)

Returns the value of attribute x.



8
9
10
# File 'lib/very_good/cursor.rb', line 8

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



8
9
10
# File 'lib/very_good/cursor.rb', line 8

def y
  @y
end