-
-
Save ganeshran/88e8ad96fa2fd4004055 to your computer and use it in GitHub Desktop.
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
#this is my ruby hash | |
{"link"=>3, "question"=>1, "status_message"=>1} | |
#I am trying to convert to this form | |
{ { xval: 'link', count: 3}, | |
{ xval: 'question', count: 1}, | |
{ xval: 'status_message', count: 1} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment