class TextEditor::Command::CursorEnd

Public Instance Methods

run(*) click to toggle source
  # File lib/text_editor/command/cursor_end.rb
4 def run(*)
5   new_cursor = cursor.move(line, content.size)
6   window.update(buffer, new_cursor)
7 end