Class: Selenium::WebDriver::Support::BlockEventListener
- Inherits:
-
Object
- Object
- Selenium::WebDriver::Support::BlockEventListener
- Defined in:
- lib/selenium/webdriver/support/block_event_listener.rb
Instance Method Summary collapse
-
#initialize(callback) ⇒ BlockEventListener
constructor
A new instance of BlockEventListener.
- #method_missing(meth, *args, &blk) ⇒ Object
Constructor Details
#initialize(callback) ⇒ BlockEventListener
Returns a new instance of BlockEventListener.
6 7 8 |
# File 'lib/selenium/webdriver/support/block_event_listener.rb', line 6 def initialize(callback) @callback = callback end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
10 11 12 |
# File 'lib/selenium/webdriver/support/block_event_listener.rb', line 10 def method_missing(meth, *args, &blk) @callback.call meth, *args end |