Skip to content

Instantly share code, notes, and snippets.

@samstokes
Created November 20, 2009 20:46
Show Gist options
  • Save samstokes/239767 to your computer and use it in GitHub Desktop.
Save samstokes/239767 to your computer and use it in GitHub Desktop.
Code snippet from http://www.kalzumeus.com/2009/11/17/practical-metaprogramming-with-ruby-storing-preferences/ that taught me something new about Ruby syntax and regex usage.
caller[0][/`([^']*)'/, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment