Skip to content

Instantly share code, notes, and snippets.

@altamic
Created February 20, 2011 12:10
Show Gist options
  • Save altamic/835930 to your computer and use it in GitHub Desktop.
Save altamic/835930 to your computer and use it in GitHub Desktop.
# trick for checking syntax of ruby code
eval("BEGIN{return true}; #{code}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment