Skip to content

Instantly share code, notes, and snippets.

@nickserv
Last active December 12, 2015 02:38
Show Gist options
  • Save nickserv/4700632 to your computer and use it in GitHub Desktop.
Save nickserv/4700632 to your computer and use it in GitHub Desktop.
A simple tutorial for invoking pry (an awesome REPL for Ruby) at runtime
  1. Install pry.
gem install pry
  1. Require pry at the top of whatever Ruby file to want to launch it from.
require 'pry'
  1. Put this wherever you want to start a REPL. Exiting the REPL will cause your program to continue executing.
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment