Class: Firefox
Instance Method Summary collapse
-
#initialize(path = File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Mozilla Firefox\firefox.exe')) ⇒ Firefox
constructor
A new instance of Firefox.
- #teardown ⇒ Object
Methods inherited from Browser
#escaped_name, #host, #installed?, #linux?, #macos?, #name, #path, #runnable?, #setup, #supported?, #to_s, #visit, #windows?
Constructor Details
#initialize(path = File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Mozilla Firefox\firefox.exe')) ⇒ Firefox
Returns a new instance of Firefox.
2 3 4 |
# File 'lib/hanoi/browsers/firefox.rb', line 2 def initialize(path = File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Mozilla Firefox\firefox.exe')) @path = path end |
Instance Method Details
#teardown ⇒ Object
6 7 8 9 10 |
# File 'lib/hanoi/browsers/firefox.rb', line 6 def teardown if macos? system("killall firefox-bin") end end |