Pry Doc is a plugin for Pry. It provides extended documentation support for Pry.
Install the gem using the below command.
gem install pry-doc
To automatically load
pry-doc upon starting
pry, add the command
require 'pry-doc' to your
You can read more about it in Pry's README file.
Pry Doc extends two core Pry commands:
show-source (aliased as
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
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 Ruby 2.0 and above.
Simply file an issue or visit
The project uses the MIT License. See LICENSE file for more information.