x[1…-2] is the string without the brackets. · split(',') splits the string at commas into an array of strings. · collect! calls .to_i on each ...
確定! 回上一頁