Created
June 14, 2011 01:54
-
-
Save amorton/1024159 to your computer and use it in GitHub Desktop.
Things I know about Ruby
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
# in irb to get any variable regardless of scope | |
obj.instance_variable_get("@var_name") | |
# in irb to exec any function regardless of scope | |
obj.send(:func_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment