lib/vedeu/cursor/cursor.rb in vedeu-0.4.55 vs lib/vedeu/cursor/cursor.rb in vedeu-0.4.56

- old
+ new

@@ -49,11 +49,11 @@ # @option attributes repository [Vedeu::Repository] # @option attributes visible [Boolean] The visibility of the cursor. # @option attributes x [Fixnum] The terminal x coordinate for the cursor. # @option attributes y [Fixnum] The terminal y coordinate for the cursor. # - # @return [Cursor] + # @return [Vedeu::Cursor] def initialize(attributes = {}) # Hack because Repository#by_name creates Cursor objects with just a # name. attributes = { name: attributes } if attributes.is_a?(String) @@ -96,11 +96,11 @@ # focussed interface. # # @example # Vedeu.hide_cursor(name) # - # @return [Vedeu::EscapeChar] + # @return [Vedeu::Escape] def hide super visibility end @@ -116,11 +116,11 @@ # focussed interface. # # @example # Vedeu.show_cursor(name) # - # @return [Vedeu::EscapeChar] + # @return [Vedeu::Escape] def show super visibility end @@ -151,12 +151,12 @@ # Returns the escape sequence for setting the visibility of the cursor. # # @return [String] def visibility - return Vedeu::EscapeChar.new(Vedeu::Esc.show_cursor) if visible? + return Vedeu::Escape.new(Vedeu::Esc.show_cursor) if visible? - Vedeu::EscapeChar.new(Vedeu::Esc.hide_cursor) + Vedeu::Escape.new(Vedeu::Esc.hide_cursor) end end # Cursor end # Vedeu