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 via the browser.

Usage example in pure Ruby:

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


779
780
781
782
783
784
785
786
787
788
789
790
# File 'lib/open/in_browser/in_browser.rb', line 779

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

#open_in_editor(i, &block) ⇒ Object

#

open_in_editor

#


531
532
533
# File 'lib/open/in_editor/in_editor.rb', line 531

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

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

#

open_these_files

#


114
115
116
# File 'lib/open/these_files/these_files.rb', line 114

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