DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Open Gem With Textmate

  • submit to reddit
        open_gem is a rubygem. It adds a Gem Command to easily open a ruby gem with an editor. The Editor is specified with the -c option (or in $GEM_OPEN_EDITOR or $EDITOR). After Installation 

$ sudo gem update --system
$ sudo gem install open_gem

this is the Syntax
$ gem open name_of_the_gem_to_open -c name_of_the_editor

and this Example opens 'open_gem' with 'textmate'
$ gem open open_gem -c mate