Method: Rtt.start

Defined in:
lib/rtt.rb

.start(task_name = nil) ⇒ Object

Starts a new timer. It stops the current task if there is any.

Usage

start a time new:

start ‘new_task’ TODO: Make it start PAUSED TASKS!



142
143
144
145
# File 'lib/rtt.rb', line 142

def start(task_name = nil)
  current_task.stop if current_task.present? && task_name.present?
  Task::task(task_name).start
end