require \'net/http\' urls = [ {\'link\' => \'http://www.google.com/\'}, {\'link\' => \'http://www.yandex.ru/\'}, {\'link\' => \'http://www.baidu.com/\'} ] ur
It depends what you want to do after the function afterwards. You can do it with simple threads:
see: http://snipplr.com/view/3966/simple-example-of-threading-in-ruby/