search for: hoursdayx

Displaying 1 result from an estimated 1 matches for "hoursdayx".

Did you mean: hoursday1
2006 Apr 24
7
Can you improve on this code?
# File app/models/timesheet.rb, line 27 27: def totals 28: totals = Hash.new 29: totals["Monday"] = totals["Tuesday"] = totals["Wednesday"] = totals["Thursday"] = totals["Friday"] = totals["Saturday"] = totals["Sunday"] = totals["Totals"]=0 #initialise all to zero 31: 32: for item in