class Hour::MinuteUnit
Public Instance Methods
round()
click to toggle source
# File lib/hour.rb, line 35 def round self.value + ((0..29).include?(@hour.s) ? 0 : 1) end
round_total()
click to toggle source
# File lib/hour.rb, line 43 def round_total self.total + ((0..29).include?(@hour.s) ? 0 : 1) end
total()
click to toggle source
# File lib/hour.rb, line 39 def total @hour.h * 60 + self.value end
value()
click to toggle source
# File lib/hour.rb, line 31 def value @hour.m end