Minor Ruby improvements