ruby class generator fixes