Method: WebkitRemote::Browser#close
- Defined in:
- lib/webkit_remote/browser.rb
#close ⇒ WebkitRemote::Browser
Closes the connection the browser.
If the Browser instance was given a WebkitRemote::Process, the process will also be stopped. This instance becomes useless after closing.
47 48 49 50 51 52 53 54 |
# File 'lib/webkit_remote/browser.rb', line 47 def close return self if @closed @closed = true @http.finish @http = nil @process.stop if @stop_process self end |