Sha256: ce17b8aaef6146425ee94b2801da210a3172ca4eb4fc9a0e122f9d15da5142d6
Contents?: true
Size: 312 Bytes
Versions: 135
Compression:
Stored size: 312 Bytes
Contents
module Cucumber module Formatter module Duration # Helper method for formatters that need to # format a duration in seconds to the UNIX # <tt>time</tt> format. def format_duration(seconds) m, s = seconds.divmod(60) "#{m}m#{'%.3f' % s}s" end end end end
Version data entries
135 entries across 133 versions & 20 rubygems