Class: Selenium::WebDriver::Support::BlockEventListener

Inherits:
Object
  • Object
show all
Defined in:
rb/lib/selenium/webdriver/support/block_event_listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(callback) ⇒ BlockEventListener

Returns a new instance of BlockEventListener.



24
25
26
# File 'rb/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, *args) ⇒ Object

rubocop:disable Style/MissingRespondToMissing



28
29
30
# File 'rb/lib/selenium/webdriver/support/block_event_listener.rb', line 28

def method_missing(meth, *args) # rubocop:disable Style/MissingRespondToMissing
  @callback.call meth, *args
end