J
John Mair
pry is an irb-alternative that enables you to open a session on any
object at any point in the running program. It can also be run from the
command line.
Some uses of Pry are in debugging, exploring a codebase, even reading
documentation (using the show-doc and show-method commands (ruby 1.9
only)).
Pry supports a bunch of commands that make it easy to navigate around a
code-base, such as: cd, cat, show-method, and in particular the `ls`
command (see https://gist.github.com/835694)
Pry can also be easily configured to implement custom shells; and it can
be set to read from any object that implements a `readline` method and
output to any object that implements `puts`: (e.g Pry.input =
StringIO.new("puts 'self'\exit"), Pry.output = my_output)
For more information, try the gem: `gem install pry`
And check out the following documentation:
http://banisterfiend.wordpress.com/2011/01/27/turning-irb-on-its-head-with-pry/
http://rdoc.info/github/banister/pry/master/file/README.markdown
object at any point in the running program. It can also be run from the
command line.
Some uses of Pry are in debugging, exploring a codebase, even reading
documentation (using the show-doc and show-method commands (ruby 1.9
only)).
Pry supports a bunch of commands that make it easy to navigate around a
code-base, such as: cd, cat, show-method, and in particular the `ls`
command (see https://gist.github.com/835694)
Pry can also be easily configured to implement custom shells; and it can
be set to read from any object that implements a `readline` method and
output to any object that implements `puts`: (e.g Pry.input =
StringIO.new("puts 'self'\exit"), Pry.output = my_output)
For more information, try the gem: `gem install pry`
And check out the following documentation:
http://banisterfiend.wordpress.com/2011/01/27/turning-irb-on-its-head-with-pry/
http://rdoc.info/github/banister/pry/master/file/README.markdown