Top Level Namespace

Defined Under Namespace

Modules: Open

Instance Method Summary collapse

Instance Method Details

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

#

open_in_browser

This method will open an URL in firefox.

Usage example in pure Ruby:

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

551
552
553
554
555
556
557
558
559
560
561
562
# File 'lib/open/in_browser/in_browser.rb', line 551

def open_in_browser(
    url                = ARGV,
    optional_intralink = nil,
    &block
  )
  # ========================================================================= #
  # Next, open the class that we defined above in this file here.
  # ========================================================================= #
  _ = Open::InBrowser.new(url, false, &block)
  _.check_for_intralink(optional_intralink)
  _.run
end

#open_in_editor(i, &block) ⇒ Object

#

open_in_editor

#

310
311
312
# File 'lib/open/in_editor/in_editor.rb', line 310

def open_in_editor(i, &block)
  Open.in_editor(i, &block)
end

#open_these_files(i = ARGV, &block) ⇒ Object

#

open_these_files

#

110
111
112
# File 'lib/open/these_files/these_files.rb', line 110

def open_these_files(i = ARGV, &block)
  Open.these_files(i, &block)
end