settings = [ ['127.0.0.1',80],['0.0.0.0',443] ]
我能怎么做:
settings.each do |ip,port| ... end
代替:
settings.each do |config| ip,port = *config ... end