Advent of Code 2020: Day 8 (Ruby solution)