How to convert a Ruby struct to a hash
Posted on November 13, 2013
- Ruby doc on inject
- Jay Field’s post on inject is my go-to reference. Inject can take a while to wrap your head around, so I suggest playing with it in IRB or the console.