Sunday, November 30th, 2008 | Author: renaebair
After a chaotic holiday weekend and chaos with sugar-injected children, I finally found a free hour this weekend to create a nice, cozy class for the time_track app! Now it just needs a big refactor before I can start implementing new features and functionality. So far I think I’ve covered most of the Ruby basics other than blocks and procs but I’m not sure I’ll need those for this little program right now.
I finished Chris Pine’s “Learn to Program” book this evening. I’m looking forward to spending some time re-reading Why’s Poignant Guide To Ruby; I think I’ll find some nice gems (hahahaha) in there now that I have some more foundational knowledge of programming under my belt.
For now here’s the new codez:
Category: Uncategorized


Tuesday, 2. December 2008
I copied your code, but when I try to run it I get an error. Makes me think I am missing something basic. Here’s the error message I get.
$ ruby timer.rb
timer.rb:9:in `initialize’: No such file or directory - times.yml (Errno::ENOENT)
from timer.rb:9:in `open’
from timer.rb:9:in `initialize’
from timer.rb:58:in `new’
from timer.rb:58
Tuesday, 2. December 2008
Hi Mark, thanks for the heads up with that. I totally forgot to do a file check to make sure the files existed before I tried to read from them. It’s been corrected so you should be able to copy/paste and run it again! Let me know if you have any issues!