lib/vedeu/cursors/cursor.rb in vedeu-0.8.12 vs lib/vedeu/cursors/cursor.rb in vedeu-0.8.13

- old
+ new

@@ -81,16 +81,17 @@ # An object is equal when its values are the same. # # @param other [Vedeu::Cursors::Cursor] # @return [Boolean] def eql?(other) - self.class == other.class && name == other.name + self.class.equal?(other.class) && name == other.name end alias == eql? # @return [String] def inspect - "name:'#{name}' x:#{x} y:#{y} ox:#{ox} oy:#{oy} visible:#{visible}" + "name: #{name.inspect} x: #{x} y: #{y} ox: #{ox} oy: #{oy} " \ + "visible: #{visible}" end # {include:file:docs/events/by_name/cursor_down.md} # @return [Vedeu::Cursors::Cursor] def move_down(offset = 1)