Class: Playwright::EventEmitterCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/playwright/event_emitter.rb

Direct Known Subclasses

EventEmitterOnceCallback

Instance Method Summary collapse

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