abstract class Events::Event(H)

Overview

Abstract Event

Direct Known Subclasses

Defined in:

Events/Event.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String) #

[View source]

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


[View source]
def add_handler(block : -> ) #

Add a new block to the event

Returns a proc that removes the handler from the event


[View source]
def clear_handlers #

Clears all handlers


[View source]
def invoke(*args) #

Invoke all handlers


[View source]
def name #

[View source]