During my RubyTapas script review with upcoming guest chef Kerri Miller, we spent some time refactoring a method toward lower complexity. In the process we needed to isolate it from its dependencies, and we used Ruby’s OpenStruct library to quickly accomplish it.
This is video is an extract from a much longer meeting recording. The full script review (over an hour of video) is available on my Patreon. If you’re interested in the editing process that goes into my technical screencasts, check it out!