Module: Ruby::Pomodoro::TimeHelpers

Included in:
Cmd::Base
Defined in:
lib/ruby/pomodoro/time_helpers.rb

Instance Method Summary collapse

Instance Method Details

#to_format_string(seconds) ⇒ String

Returns as N:d N:h N:m.

Parameters:

  • seconds (Integer)

Returns:

  • (String)

    as N:d N:h N:m



6
7
8
# File 'lib/ruby/pomodoro/time_helpers.rb', line 6

def to_format_string(seconds)
  Ruby::Pomodoro::TimeConverter.to_format_string(seconds)
end