My best Ruby coding hint
One programming trick that I use to reference Ruby source code for the standard libraries and locally installed gems is to set up TextMate projects (Eclipse Ruby projects also work well) for:
- /usr/local/lib/ruby/1.8 - location of Ruby source code for standard libraries on my system
- /usr/local/lib/ruby/gems/1.8/gems - location of local gem installs (often contain examples/tests and documentation files) on my system
Mark, I followed your lead on this and have setup a Ecilpse (RadRails) project to these sources, however Ecilpse errored on the fact that these directories are set as read-only. There maybe a better way, but for now I set the directories for read & write.
ReplyDelete