Skip to content

Instantly share code, notes, and snippets.

@banister
Created February 20, 2011 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/835694 to your computer and use it in GitHub Desktop.
Save banister/835694 to your computer and use it in GitHub Desktop.
Beginning Pry session for main
pry(main)> ls --help
Usage: ls [OPTIONS] [VAR]
List information about VAR (the current context by default).
Shows local and instance variables by default.
--
-g, --globals Display global variables.
-c, --constants Display constants.
-l, --locals Display locals.
-i, --ivars Display instance variables.
-k, --class-vars Display class variables.
-m, --methods Display methods (public methods by default)
.
-M, --instance-methods Display instance methods (only relevant to
classes and modules).
-P, --public Display public methods (with -m).
-r, --protected Display protected methods (with -m).
-p, --private Display private methods (with -m).
-s, --super Include superclass entries (relevant to con
stant and methods options).
-a, --all Display all types of entries.
-v, --verbose Verbose ouput.
-h, --help Show this message.
=> nil
pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment