Reworked Ruby Generator