Sha256: c343ff21bebc54233cb2f92b4e5f0ee6a92c4cfd3dfef877bce7e67d71c1dbaa
Contents?: true
Size: 349 Bytes
Versions: 2
Compression:
Stored size: 349 Bytes
Contents
module Timeparser class Time def initialize(minutes) @minutes = minutes.to_i end def to_i minutes end def hours(round = nil) case round when :up (minutes.to_f / 60.0).ceil else (minutes.to_f / 60.0).to_i end end def minutes @minutes end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timeparser-0.0.3 | lib/timeparser/time.rb |
timeparser-0.0.2 | lib/timeparser/time.rb |