lib/vedeu/cursors/cursor.rb in vedeu-0.6.5 vs lib/vedeu/cursors/cursor.rb in vedeu-0.6.6
- old
+ new
@@ -68,11 +68,11 @@
# Moves the cursor down by one row.
#
# @return [Vedeu::Cursors::Cursor]
def move_down
- @oy = @oy + 1
+ @oy += 1
@attributes = attributes.merge!(x: x,
y: coordinate.y_position,
ox: ox,
oy: oy)
@@ -82,11 +82,11 @@
# Moves the cursor left by one column.
#
# @return [Vedeu::Cursors::Cursor]
def move_left
- @ox = @ox - 1
+ @ox -= 1
@attributes = attributes.merge!(x: coordinate.x_position,
y: y,
ox: ox,
oy: oy)
@@ -105,11 +105,11 @@
# Moves the cursor right by one column.
#
# @return [Vedeu::Cursors::Cursor]
def move_right
- @ox = @ox + 1
+ @ox += 1
@attributes = attributes.merge!(x: coordinate.x_position,
y: y,
ox: ox,
oy: oy)
@@ -119,10 +119,10 @@
# Moves the cursor up by one row.
#
# @return [Vedeu::Cursors::Cursor]
def move_up
- @oy = @oy - 1
+ @oy -= 1
@attributes = attributes.merge!(x: x,
y: coordinate.y_position,
ox: ox,
oy: oy)