A Ruby implementation of PrintCore.