lib/vedeu/cursor/cursor.rb in vedeu-0.4.6 vs lib/vedeu/cursor/cursor.rb in vedeu-0.4.7
- old
+ new
@@ -75,9 +75,14 @@
@y = @attributes.fetch(:y)
@position = Vedeu::Position.new(@y, @x)
end
+ # @return [String]
+ def inspect
+ "<Vedeu::Cursor (#{name}, #{state}, x:#{x}, y:#{y}, ox:#{ox}, oy:#{oy})>"
+ end
+
# Returns an escape sequence to position the cursor and set its visibility.
# When passed a block, will position the cursor, yield and return the
# original position.
#
# @param block [Proc]