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.
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.
Recursively convert a Ruby hash to OpenStruct » Rebecca Miller-Webster
June 20, 2012 (2:14 pm)
[…] method is here. Alternatively, you could replace that by converting HashWithIndifferentAccess if you are using […]