table_gen by ruby