3 ms·
2 things in particular I use: * Bundle comes with a `bundle open <gemname>` command that opens up the gems source code in whatever your shells $EDITOR is set t
by alinajaf 14y ago
2 things in particular I use:
* Bundle comes with a `bundle open <gemname>` command that opens up the gems source code in whatever your shells $EDITOR is set to. I use this at least three or four times a day.
* Pry (an IRB alternative) will tell you the file + line of the definition of the method you'd be running if you ran `show-source some_object.some_method`. You can also `ls` and `cd` your way around ruby modules/objects which has been invaluable.
- banister 14y agoIf you use Pry's `edit-method some_object.some_method`[1] you can actually open the method in an editor and it'll even fast forward the cursor to the first line of the method. [1] https://github.com/pry/pry/wiki/Editor-integration#wiki-Edit_method https://github.com/pry/pry/wiki/Editor-integration#wiki-Edit...