Skip to content

Instantly share code, notes, and snippets.

@amorton
Created June 14, 2011 01:54
Show Gist options
  • Save amorton/1024159 to your computer and use it in GitHub Desktop.
Save amorton/1024159 to your computer and use it in GitHub Desktop.
Things I know about Ruby
# 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