mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
updated readme
This commit is contained in:
parent
62d1e31819
commit
2d64a41bb6
1 changed files with 5 additions and 2 deletions
|
@ -44,6 +44,7 @@ If we now inspect the `Test` object we can see our changes have had
|
||||||
effect:
|
effect:
|
||||||
|
|
||||||
Test.instance_variable_get(:@y) #=> 20
|
Test.instance_variable_get(:@y) #=> 20
|
||||||
|
|
||||||
|
|
||||||
example: Pry sessions can nest arbitrarily deep so we can pry on
|
example: Pry sessions can nest arbitrarily deep so we can pry on
|
||||||
objects inside objects:
|
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
|
Here we will begin Pry at top-level, then pry on a class and then on
|
||||||
an instance variable inside that class:
|
an instance variable inside that class:
|
||||||
|
|
||||||
|
# Pry.into() without parameters begins a Pry session on top-level (main)
|
||||||
Pry.into
|
Pry.into
|
||||||
Beginning Pry session for main
|
Beginning Pry session for main
|
||||||
pry(main)> class Hello
|
pry(main)> class Hello
|
||||||
|
@ -75,8 +77,9 @@ an instance variable inside that class:
|
||||||
|
|
||||||
# program resumes here
|
# 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
|
If we embed our `Pry.into` method inside its own thread we can examine
|
||||||
|
|
Loading…
Add table
Reference in a new issue