Top Level Namespace

Defined Under Namespace

Classes: OpenInBrowser

Instance Method Summary collapse

Instance Method Details

#open_in_browser(url = '', optional_intralink = nil) ⇒ Object Also known as: oib

#

open_in_browser

This method will open an URL in firefox.

Usage example in pure Ruby:

require 'open_in_browser'; open_in_browser 'google.at'
#

252
253
254
255
256
257
258
259
# File 'lib/open_in_browser/open_in_browser.rb', line 252

def open_in_browser(url = '', optional_intralink = nil)
  # ========================================================================= #
  # Next, open the class that we defined above in this file here.
  # ========================================================================= #
  _ = OpenInBrowser.new(url, false)
  _.check_for_intralink(optional_intralink)
  _.run
end