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.
Methods inherited from Browser
#escaped_name, #host, #installed?, #linux?, #macos?, #name, #path, #runnable?, #setup, #supported?, #teardown, #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 |