> cd Array
> ls
Array.methods: [] try_convert
Array#methods: & * + abbrev assoc at ...
> show-source
> hist # History
> wtf? # Trace of recent exception
shell-mode adds dir to the prompt.
pry(main)> shell-mode
pry(main):/home/x $
Commands with .
are shell commands.
pry(main)> .cat hello.txt
Add the pry-rescue gem.
Pry::rescue {
# raise exceptions here
}
Or run:
bundle exec rescue rspec
Additional commands:
pry(main)> cd-cause
pry(main)> try-again