Class: Launchy::Browser

Inherits:
Object
  • Object
show all
Defined in:
lib/launchy/deprecated.rb

Overview

This class is deprecated and will be removed

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(*args) ⇒ Object


6
7
8
# File 'lib/launchy/deprecated.rb', line 6

def self.run( *args )
  Browser.new.visit( args[0] )
end

Instance Method Details

#visit(url) ⇒ Object


10
11
12
13
14
15
# File 'lib/launchy/deprecated.rb', line 10

def visit( url )
  _warn "You made a call to a deprecated Launchy API. This call should be changed to 'Launchy.open( uri )'"
  report_caller_context( caller )

  ::Launchy.open( url )
end