Ruby already solved my problem