lib/vedeu/cursor/cursor.rb in vedeu-0.4.44 vs lib/vedeu/cursor/cursor.rb in vedeu-0.4.45
- old
+ new
@@ -64,9 +64,11 @@
@attributes.each { |key, value| instance_variable_set("@#{key}", value) }
@position = Vedeu::Position.new(@y, @x)
end
+ # Override Ruby's Object#inspect method to provide a more helpful output.
+ #
# @return [String]
def inspect
"<Vedeu::Cursor (#{name}, " \
"#{visible}, " \
"x:#{x}, " \