Created
October 9, 2008 22:15
-
-
Save webmat/15920 to your computer and use it in GitHub Desktop.
Check out the values of all instance variables in object 'o'
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
# Check out the values of all instance variables in object 'o': | |
o.instance_variables.inject({}) {|memo,v| | |
memo.merge!(v=>s.instance_eval(v)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment