开发者

Open Browser Window with Ruby?

How do I open a browser window 开发者_JAVA百科(Safari) with Ruby on a Mac and pass it a url?


You can use:

`open #{url}`


Basically the same as Peter's answer, just more explicit.

system("open -a Safari #{url}")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜