1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

updated readme

This commit is contained in:
John Mair 2010-12-09 00:45:15 +13:00
parent 62d1e31819
commit 2d64a41bb6

View file

@ -45,6 +45,7 @@ effect:
Test.instance_variable_get(:@y) #=> 20
example: Pry sessions can nest arbitrarily deep so we can pry on
objects inside objects:
----------------------------------------------------------------
@ -52,6 +53,7 @@ objects inside objects:
Here we will begin Pry at top-level, then pry on a class and then on
an instance variable inside that class:
# Pry.into() without parameters begins a Pry session on top-level (main)
Pry.into
Beginning Pry session for main
pry(main)> class Hello
@ -75,8 +77,9 @@ an instance variable inside that class:
# program resumes here
example: Spawn a separate thread so you can use `Pry` to manipulate an object without halting
the program.
example: Spawn a separate thread so you can use `Pry` to manipulate an
object without halting the program.
--------------------------------------------------------------------
If we embed our `Pry.into` method inside its own thread we can examine