lib/time_index.rb in vcs_ruby-1.1.10 vs lib/time_index.rb in vcs_ruby-1.1.11
- old
+ new
@@ -45,17 +45,13 @@
return @total_seconds += part.to_i * 60 if part.end_with? 'm'
@total_seconds += part.to_i
end
def try_parse_as_number
- temp = @to_parse.to_i
+ temp = @to_parse.to_f
if temp.to_s == @to_parse
@total_seconds += temp
end
- end
-
- def total_seconds
- @total_seconds
end
def hours
(@total_seconds.abs / 3600).to_i
end