lib/vedeu/cursors/cursor.rb in vedeu-0.6.62 vs lib/vedeu/cursors/cursor.rb in vedeu-0.6.63
- old
+ new
@@ -83,9 +83,15 @@
def eql?(other)
self.class == other.class && name == other.name
end
alias_method :==, :eql?
+ # @return [String]
+ def inspect
+ "<#{self.class.name} name:'#{name}', x:#{x}, y:#{y}, ox:#{ox}, " \
+ "oy:#{oy}, visible:#{visible}>"
+ end
+
# Moves the cursor down by one row.
#
# Vedeu.trigger(:_cursor_down_, name)
# Vedeu.trigger(:_cursor_down_, Vedeu.focus)
#