Displaying 1 result from an estimated 1 matches for "hoursday7".
Did you mean:
hoursday1
2006 Apr 24
7
Can you improve on this code?
...["Tuesday"]+=item.hoursday2
35: totals["Wednesday"]+=item.hoursday3
36: totals["Thursday"]+=item.hoursday4
37: totals["Friday"]+=item.hoursday5
38: totals["Saturday"]+=item.hoursday6
39: totals["Sunday"]+=item.hoursday7
40: totals["Totals"]+=item.hours
41: end
42: totals
43: end
--
Posted via http://www.ruby-forum.com/.