Pry – Part 3

So, assuming you’ve been through Part 1 and Part 2, you should have the Hello World gem installed.

We can cd directly into the gem’s source code and look at it directly:

We can run commands directly by prefixing them with a period.
E.g. look at the file structure layout using tree:

Note that you may need to install tree on MacOSX. E.g.

You can cdd into other objects, e.g.

The prompt updates to show you what object you’re in.

And:

shows you the current nesting status, e.g.

Pop out using:

or jump to an index:

Input buffers:
Clear out:

Amend:
Say you want to amend a line:

Leave a Reply

Your email address will not be published. Required fields are marked *