Class: Selenium::WebDriver::Firefox::SocketLock Private
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Firefox::SocketLock
- Defined in:
- rb/lib/selenium/webdriver/firefox/socket_lock.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary (collapse)
-
- (SocketLock) initialize(port, timeout)
constructor
private
A new instance of SocketLock.
- - (Object) locked(&blk) private
Constructor Details
- (SocketLock) initialize(port, timeout)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SocketLock
11 12 13 14 |
# File 'rb/lib/selenium/webdriver/firefox/socket_lock.rb', line 11 def initialize(port, timeout) @port = port @timeout = timeout end |
Instance Method Details
- (Object) locked(&blk)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 23 24 |
# File 'rb/lib/selenium/webdriver/firefox/socket_lock.rb', line 16 def locked(&blk) lock begin yield ensure release end end |