Created
May 10, 2011 20:32
-
-
Save anewusername1/965327 to your computer and use it in GitHub Desktop.
Convert hash symbols to strings
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
my_hash.inject({}){|memo,(k,v)| memo[k.to_s] = v; memo} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment