class TextEditor::Command::WriteFile
Public Instance Methods
run(*)
click to toggle source
# File lib/text_editor/command/write_file.rb 4 def run(*) 5 if window.file 6 window.file.write(buffer.to_s) 7 else 8 terminal.beep 9 end 10 end