Created
February 4, 2012 20:50
-
-
Save sam452/1740069 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Clear the input buffer. Useful if the parsing process goes wr | |
!pry Start a Pry session on current self; this even works mid mult | |
.<shell command> All text following a '.' is forwarded to the shell. | |
amend-line Amend a line of input in multi-line mode. Type `amend-line -- | |
cat Show code from a file, Pry's input buffer, or the last except | |
cd Move into a new context (object or scope). Type `cd --help` f | |
edit Invoke the default editor on a file. Type `edit --help` for m | |
edit-method Edit a method. Type `edit-method --help` for more info. | |
exit Pop the previous binding (does NOT exit program). Type `exit | |
exit-all End the current Pry session (popping all bindings) and return | |
exit-program End the current program. Aliases: quit-program, !!! | |
gem-cd Change working directory to specified gem's directory. | |
gem-install Install a gem and refresh the gem cache. | |
gem-list List and search installed gems. | |
gist Gist a method or expression history to github. Type `gist --h | |
help Show a list of commands, or help for one command | |
hist Show and replay Readline history. Aliases: history | |
import-set Import a command set | |
install-command Install a disabled command. | |
jump-to Jump to a binding further up the stack, popping all bindings | |
ls Show the list of vars and methods in the current scope. Type | |
import-set Import a command set | |
install-command Install a disabled command. | |
jump-to Jump to a binding further up the stack, popping all bindings | |
ls Show the list of vars and methods in the current scope. Type | |
nesting Show nesting information. | |
play Play back a string variable or a method or a file as input. T | |
pry-backtrace Show the backtrace for the Pry session. | |
pry-version Show Pry version. | |
reload-method Reload the source file that contains the specified method | |
req Require file(s) and expand their paths. | |
reset Reset the REPL to a clean state. | |
ri View ri documentation. e.g `ri Array#each` | |
save-file Export to a file using content from the REPL. | |
shell-mode Toggle shell mode. Bring in pwd prompt and file completion. | |
show-command Show the source for CMD. Type `show-command --help` for more | |
show-doc Show the comments above METH. Type `show-doc --help` for more | |
show-input Show the contents of the input buffer for the current multi-l | |
show-method Show the source for METH. Type `show-method --help` for more | |
simple-prompt Toggle the simple prompt. | |
stat View method information and set _file_ and _dir_ locals. Type | |
switch-to Start a new sub-session on a binding in the current stack (nu | |
toggle-color Toggle syntax highlighting. | |
whereami Show the code context for the session. (whereami <n> shows <n | |
(END) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment