Pry Doc

Circle Build Status

Description

Pry Doc is a plugin for Pry. It provides extended documentation support for Pry.

Installation

All you need is to install the gem. The pry-doc plugin will be detected and used automatically.

gem install pry-doc

Synopsis

Pry Doc extends two core Pry commands: show-doc and show-source (aliased as ? and $ respectively).

For example, in vanilla Pry it’s impossible to get the documentation for the loop method (it’s a method, by the way). However, Pry Doc solves that problem.

show-source

Let's check the source code of the loop method.

show-doc

Generally speaking, you can retrieve most of the MRI documentation and accompanying source code. Pry Doc is also smart enough to get any documentation for methods and classes implemented in C.

Limitations

Pry Doc supports Ruby 2.0 and above.

Getting Help

Simply file an issue or visit #pry at irc.freenode.net.

License

The project uses the MIT License. See LICENSE file for more information.