Skip to content

Instantly share code, notes, and snippets.

@phil303
Created May 16, 2012 19:38
Show Gist options
  • Save phil303/2713341 to your computer and use it in GitHub Desktop.
Save phil303/2713341 to your computer and use it in GitHub Desktop.
cd into context
[15] (pry) main: 0> cd Pry
[16] (pry) main / Pry: 1> ls
# Pry lists out every public method or instance variable defined on the current object, which is a ton.
# Let's add a switch to clean up our results
[17] (pry) main / Pry: 1> ls -m
# Pry gives us only the public methods. We can clean it up better still with grep flag.
[18] (pry) main / Pry: 1> ls -m --grep ^co
# => Pry.methods: color color= commands commands= config config=
[19] (pry) main / Pry: 1> cd ..
[20] (pry) main: 0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment