class TextEditor::Command::ReplaceLine
Public Instance Methods
run(*)
click to toggle source
# File lib/text_editor/command/replace_line.rb 4 def run(*) 5 new_buffer = buffer.replace_line(line) 6 new_cursor = cursor.move(line, 0) 7 window.update(new_buffer, new_cursor) 8 9 command.change_mode(:insert) 10 end