Skip to content
Provide MRI Core documentation and source code for the Pry REPL
Ruby C
Pull request Compare This branch is 122 commits ahead of banister:master.
Latest commit 79363dc Mar 29, 2016 @kyrylo kyrylo Merge pull request #32 from takiy33/update-bundler-on-travis
Update bundler before travis builds

Pry Doc


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


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

gem install pry-doc


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.


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


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.


Pry Doc supports the following Rubies:

  • MRI 1.9
  • MRI 2.0
  • MRI 2.1
  • MRI 2.2

Getting Help

Simply file an issue or visit #pry at


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

Something went wrong with that request. Please try again.