Learning Ruby advice needed

I added an edit-method command to pry, which works in principle
similarly to interactive_editor.

Except you can just go edit-method obj.meth and the source file for
the method is opened and fast forwarded to the first line of the method.
The file is re-loaded once the editor returns to the pry session too.

Pry is also useful in general for exploring a code-base, learning about
a library, examining program state at runtime, and so on.

Check out the docs for pry if you’re interested:

http://rdoc.info/github/banister/pry/master/file/README.markdown

For instance, it has no memory of the last session (it does not keep
records like .bash_history).

That’s reasonably easy. Here’s an example:

http://snippets.dzone.com/posts/show/2586

Thanks! I’m a bit glaikit sometimes: never thought of making it do
that!

Good craic
Thank you
Johnny

On Fri, May 13, 2011 at 3:23 PM, John M. [email protected] wrote:

I added an edit-method command to pry, which works in principle
similarly to interactive_editor.

Except you can just go edit-method obj.meth and the source file for
the method is opened and fast forwarded to the first line of the method.
The file is re-loaded once the editor returns to the pry session too.

Cool!