pry/pry — Issue #421: Add ability to edit "this line I'm at right now"
Author: cluesque
Created: 2012-01-13 17:58:06+00:00
State: open

It would be useful to be able to edit the current location even if it's not in a named method.

My current use case is a cucumber step, but I imagine many DSLs that make heavy use of blocks would have a similar issue.

If I just say "edit-method" I see the error "Error: No method name given, and context is not a method. Type `edit-method --help` for help."

The workaround is to "whereami" and then copy from the From: line and paste after edit. So clearly pry knows all it needs to.

It would just be friendlier to have a single thing to type.