Top Level Namespace
Defined Under Namespace
Modules: Open
Instance Method Summary collapse
-
#open_in_browser(url = ARGV, optional_intralink = nil, &block) ⇒ Object
(also: #oib)
# === open_in_browser.
-
#open_in_editor(i, &block) ⇒ Object
# === open_in_editor =========================================================================== #.
-
#open_these_files(i = ARGV, &block) ⇒ Object
# === open_these_files =========================================================================== #.
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'
#
598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/open/in_browser/in_browser.rb', line 598 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
#
335 336 337 |
# File 'lib/open/in_editor/in_editor.rb', line 335 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 |