3 category: Ruby libraries
10 Pry is a runtime development console for Ruby.
12 - <https://github.com/pry/pry>
22 Array.methods: [] try_convert
23 Array#methods: & * + abbrev assoc at ...
33 > show-method Array#select
43 > show-doc try_activate
62 > gem-cd foo # Switch to gem's dir
69 > wtf? # Trace of recent exception
75 Also consider [pry-rails](https://rubygems.org/gems/pry-rails).
77 $ pry -r ./config/environment
90 > ls -M # Instance methods
96 > ls -i # Instance vars
98 > ls -G xx # Grep by regex
102 shell-mode adds dir to the prompt.
104 pry(main)> shell-mode
107 Commands with `.` are shell commands.
109 pry(main)> .cat hello.txt
112 Add the [hirb](https://rubygems.org/gems/hirb) gem.
116 > view User.all, fields: %w[id name email]
119 Add the [pry-rescue](https://github.com/ConradIrwin/pry-rescue) gem.
123 # raise exceptions here
130 bundle exec rescue rspec
141 Add the [pry-remote](https://github.com/Mon-Ouie/pry-remote) gem.
148 bundle exec pry-remote
153 * [Pry](https://github.com/pry/pry)
154 * [Hirb](https://github.com/cldwalker/hirb)