lib/vedeu/cursors/cursor.rb in vedeu-0.7.3 vs lib/vedeu/cursors/cursor.rb in vedeu-0.7.4

- old
+ new

@@ -172,11 +172,12 @@ # 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] # @return [String] - def to_s + def to_s(&block) return escape_sequence.to_s unless block_given? "#{position}#{yield}#{escape_sequence}".freeze end alias_method :to_str, :to_s