123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Inherits: Object
Defined in: rb/lib/selenium/webdriver/support/block_event_listener.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(callback) ⇒ BlockEventListener

[ GitHub ]

  
# 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)

[ GitHub ]

  
# File 'rb/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

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/support/block_event_listener.rb', line 32

def respond_to_missing?(_meth, _include_private = false)
  true
end