1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Editing Code In Pry as a ruby til.

This commit is contained in:
jbranchaud
2015-07-26 20:02:02 -05:00
parent 2974c2a1fc
commit 4aceb493fa
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Editing Code In Pry
[Pry](http://pryrepl.org/) provides an enhanced REPL experience for Ruby.
One of the enhancements it provides is the ability to open your preferred
editor within a pry session. This makes it easy to compose and edit
multi-line blocks of code.
Try it out by typing `edit` within a pry session. Once you are ready, you
can save the file which will prompt pry to interpret the contents of your
file within the context of the pry session.