Method: TTYString::Cursor#up
- Defined in:
- lib/tty_string/cursor.rb
#up(count = 1) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/tty_string/cursor.rb', line 30 def up(count = 1) count = count.to_i raise ArgumentError if count.negative? self.row -= count end |