class Ruby::Pomodoro::Cmd::Quit

Save tasks and stop program

Public Instance Methods

call(editor) click to toggle source

@param [Ruby::Pomodoro::Tasks::Editor] editor @return [Symbol]

# File lib/ruby/pomodoro/cmd/quit.rb, line 8
def call(editor)
  worker.delete_observers
  worker.stop
  editor.save
  Main.new.call
  print text: "Bye!\n", color: :green, clear: false
  :quit
end