Created
September 15, 2012 07:58
-
-
Save googya/3726892 to your computer and use it in GitHub Desktop.
print all global variables in Ruby
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
| global_variables.each do |x| | |
| print x," ===> ", eval(x.to_s), "\n" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment