lib/vedeu/cursor/cursor.rb in vedeu-0.5.2 vs lib/vedeu/cursor/cursor.rb in vedeu-0.5.3

- old
+ new

@@ -78,14 +78,14 @@ # original position. # # @return [String] def to_s if block_given? - [sequence, yield, sequence].join + "#{position}#{yield}#{position}#{visibility}" else - sequence + "#{position}#{visibility}" end end alias_method :to_str, :to_s @@ -135,16 +135,9 @@ repository: Vedeu.cursors, visible: false, x: 1, y: 1, } - end - - # Returns the escape sequence to position the cursor and set its visibility. - # - # @return [String] - def sequence - [position, visibility].join end # Returns the escape sequence for setting the visibility of the cursor. # # @return [String]