|
|
|
|
|
by iamgilesbowkett
5148 days ago
|
|
This looks great, but the edit feature is not actually something you can't have in IRB. Both my own utility_belt gem from 2007 and another person's sketches gem from 2009 enabled the same functionality. I think Pry is great, I wrote a little console with it recently for a simple back-end app, and the edit feature looks like your most advanced option for this kind of thing. But for the sake of accuracy, it's not actually 100% brand new functionality. A lot of people have been doing that in IRB for a long time. |
|
Other things the Pry editor feature can do that i haven't seen elsewhere: it can edit methods (`edit-method MyClass#my_method`), it can open up an editor directly on the file/line that caused the last exception (`edit --ex`), it can edit previous expressions (`edit -i EXPR`).
Your interactive_editor gem was inspiration for this though, a very nice little gem :)