Skip to content

Instantly share code, notes, and snippets.

@googya
Created September 15, 2012 07:58
Show Gist options
  • Select an option

  • Save googya/3726892 to your computer and use it in GitHub Desktop.

Select an option

Save googya/3726892 to your computer and use it in GitHub Desktop.
print all global variables in Ruby
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