Open the default browser in Ruby -
in python, can this:
import webbrowser webbrowser.open_new("http://example.com/")
it open passed in url in default browser
is there ruby equivalent?
cross-platform solution
first, install launchy gem:
$ gem install launchy
then, can run this:
require 'launchy' launchy.open("http://stackoverflow.com")
Comments
Post a Comment