class

Events::Event(H)

Inherits Reference < Object

Abstract Event

Constructors

new(name : String)
Source

Instance methods

add_handler(handler : H)

Add a new handler to the event

Returns a proc that removes the handler from the event

Source
add_handler(block : -> )

Add a new block to the event

Returns a proc that removes the handler from the event

Source
clear_handlers

Clears all handlers

Source
invoke(*args)

Invoke all handlers

Source
name
Source