/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
my_hash = my_hash.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}