Sha256: ee8078670db4931413245fe95428ad00637bdd22f068fe2b23fd3807db090483
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
module Pokeplot module Helpers class Time class << self def to_s(seconds) m = (seconds / 60).floor s = seconds % 60 return "#{m} minutes and #{s} seconds" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pokeplot-0.2.1beta | lib/pokeplot/helpers/time.rb |
pokeplot-0.2.0beta | lib/pokeplot/helpers/time.rb |