CSV
Rubyで使用して解析しようとしている「.CSV」ファイルがあります。ただし、ファイルには2行のヘッダーがあり、これまでに遭遇したことがなく、処理方法がわかりません。以下は、ヘッダーと行の例です。
行 1
"Institution ID","Institution","Game Date","Uniform Number","Last Name","First Name","Rushing","","","","","Passing","","","","","","Total Off.","","Receiving","","","Pass Int","","","Fumble Ret","","","Punting","","Punt Ret","","","KO Ret","","","Total TD","Off xpts","","","","Def xpts","","","","FG","","Saf","Points"
行 2
"","","","","","","Rushes","Gain","Loss","Net","TD","Att","Cmp","Int","Yards","TD","Conv","Plays","Yards","No.","Yards","TD","No.","Yards","TD","No.","Yards","TD","No.","Yards","No.","Yards","TD","No.","Yards","TD","","Kicks Att","Kicks Made","R/P Att","R/P Made","Kicks Att","Kicks Made","Int/Fum Att","Int/Fum Made","Att","Made"
行 3
"721","AirForce","09/01/12","19","BASKA","DAVID","","","","","","","","","","","","0","0","","","","","","","","","","2","85","","","","","","","","","","","","","","","","","","","0"
上記の例には戻り値がありません。読みやすいように追加しただけです。この構造を処理するために使用できるメソッドはありますか?CSV
それとも、これを処理するために独自のメソッドを作成する必要がありますか? ありがとう!