Ruby Quicktips Logo

Ruby Quicktips

Random Ruby and Rails tips.
This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Read more...

Your submissions are more than welcome!
Aug 3 ’10

OpenGem: Easy Access to a Gem’s Source and Documentation

If you install the OpenGem, you’ll have two handy commands available:

  • gem open rails will open the gem’s source code in an editor of your choice, and
  • gem read rails will open a browser pointed to the gem’s documentation.

This is a fabulous way to read other people’s code and learn how to make your own gems!

You might want to have a look at this related tip: Easy Access to the API Docs for Gems.

This tip was submitted by naehrstoff.

19 notes 0 comments

  1. matiasleidemer reblogged this from rubyquicktips
  2. nicktj reblogged this from rubyquicktips
  3. jackhq reblogged this from rubyquicktips
  4. rubyloveinfo reblogged this from rubyquicktips
  5. atm09td reblogged this from rubyquicktips
  6. naehrstoff submitted this to rubyquicktips

Comments

You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.

blog comments powered by Disqus