Module: Pompom

Defined in:
lib/pompom.rb

Defined Under Namespace

Classes: Application, Asciifier, NCursesScreen, NullWorkLog, Pomodoro, View, Worklog

Class Method Summary collapse

Class Method Details

.format_time(number) ⇒ Object



7
8
9
10
11
# File 'lib/pompom.rb', line 7

def self.format_time(number)
  minutes = number / 60
  seconds = number % 60
  sprintf("%02d:%02d", minutes, seconds)
end