Created
May 16, 2012 19:38
-
-
Save phil303/2713341 to your computer and use it in GitHub Desktop.
cd into context
This file contains 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
[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