Created
November 20, 2009 20:46
-
-
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.
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
caller[0][/`([^']*)'/, 1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment