Mark Watson’s Artificial Intelligence Books and Blog

Share this post

My best Ruby coding hint

markwatson.com

My best Ruby coding hint

Mark Watson
Jun 23, 2007
Share

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

When you are using a standard library or a gem it is great to have the source right in front of you for reference.

Share
Comments
Top
New

No posts

Ready for more?

© 2023 Mark Watson
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing