Return to Snippet

Revision: 22334
at January 9, 2010 16:52 by nate63179


Initial Code
def recursive_symbolize_keys! hash
hash.symbolize_keys!
 hash.values.select{|v| v.is_a? Hash}.each{|h| recursive_symbolize_keys!(h)}
end

Initial URL

                                

Initial Description
Credit: http://pragmatig.wordpress.com/2009/04/14/recursive-symbolize_keys/

Initial Title
RUBY: Recursive symbolize keys

Initial Tags
ruby

Initial Language
Ruby