list = [:id] + 65..90.map(&:chr).map(&:to_sym) def get_value(col, x) col["#{list[x]}tShirt"] end
宜家D FG programmer咁能安狗? 爛 code 應該咁寫 list = [:id] + 65..90.map(&:chr).map(&:to_sym) def get_value(col, x) col["#{list[x]}tShirt".to_sym] end
宜家D FG programmer咁能安狗?
list = [:id] + 65..90.map(&:chr).map(&:to_sym) def get_value(col, x) col["#{list[x]}tShirt".to_sym] end