Code from following Brandon Hilkert's how to build a Ruby gem series.