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) ⇒ Object
- #respond_to_missing?(_meth, _include_private = false) ⇒ Boolean
Constructor Details
#initialize(callback) ⇒ BlockEventListener
Returns a new instance of BlockEventListener.
24 25 26 |
# File 'lib/selenium/webdriver/support/block_event_listener.rb', line 24 def initialize(callback) @callback = callback end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth) ⇒ Object
28 29 30 |
# File 'lib/selenium/webdriver/support/block_event_listener.rb', line 28 def method_missing(meth, *) @callback.call(meth, *) end |
Instance Method Details
#respond_to_missing?(_meth, _include_private = false) ⇒ Boolean
32 33 34 |
# File 'lib/selenium/webdriver/support/block_event_listener.rb', line 32 def respond_to_missing?(_meth, _include_private = false) true end |