Extend Ruby hash to return all keys as symbols

Posted on June 18, 2012

It is sometimes useful to force all hash keys to be symbols, especially in a situation where you can’t use HashWithIndifferentAccess.

Spec is here.


1 Reply to "Extend Ruby hash to return all keys as symbols"


Got something to say?

Some html is OK

This site uses Akismet to reduce spam. Learn how your comment data is processed.