Your search for hash returned 4 results.
Use inject! (more…)
ActiveRecord's serialize functionality is quite useful when you want some schema-less data within a relational database. I have found this particularly useful for two cases: Design elements on a page Authentication data for various (unknown) external services However, the one thing that is missing from the built in functionality is the nice getter/setters ...
I love OpenStruct. Like love love. The only reason I wouldn't marry it is that it won't recursively convert a nested hash to OpenStruct. So I wrote a hash extension to do just that. Wip out your credit cards, our wedding registry is forth coming. (more…)
It is sometimes useful to force all hash keys to be symbols, especially in a situation where you can't use HashWithIndifferentAccess. (more…)