开发者

Open Browser Window with Ruby?

开发者 https://www.devze.com 2022-12-24 04:54 出处:网络
How do I open a browser window 开发者_JAVA百科(Safari) with Ruby on a Mac and pass it a url? You can use:

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

精彩评论

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