abstract class Events::Event(H)
- Events::Event(H)
- Reference
- Object
Overview
Abstract Event
Direct Known Subclasses
Defined in:
Events/Event.crConstructors
Instance Method Summary
-
#add_handler(handler : H)
Add a new handler to the event
-
#add_handler(block : -> )
Add a new block to the event
-
#clear_handlers
Clears all handlers
-
#invoke(*args)
Invoke all handlers
- #name
Constructor Detail
Instance Method Detail
def add_handler(handler : H)
#
Add a new handler to the event
Returns a proc that removes the handler from the event
def add_handler(block : -> )
#
Add a new block to the event
Returns a proc that removes the handler from the event