Class: Playwright::EventEmitterCallback
- Inherits:
-
Object
- Object
- Playwright::EventEmitterCallback
- Defined in:
- lib/playwright/event_emitter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(callback_proc) ⇒ EventEmitterCallback
constructor
A new instance of EventEmitterCallback.
Constructor Details
#initialize(callback_proc) ⇒ EventEmitterCallback
Returns a new instance of EventEmitterCallback.
3 4 5 |
# File 'lib/playwright/event_emitter.rb', line 3 def initialize(callback_proc) @proc = callback_proc end |
Instance Method Details
#call(*args) ⇒ Object
7 8 9 10 |
# File 'lib/playwright/event_emitter.rb', line 7 def call(*args) @proc.call(*args) true end |