struct Athena::EventDispatcher::Callable::Event(E)

Overview

Represents a listener that only accepts the AED::Event instance.

Defined in:

callable.cr

Constructors

Instance methods inherited from struct Athena::EventDispatcher::Callable

event_class : AED::Event.class event_class, name : String name, priority : Int32 priority

Constructor methods inherited from struct Athena::EventDispatcher::Callable

new(event_class : AED::Event.class, name : String | Nil, priority : Int32) new

Constructor Detail

def self.new(callback : E -> Nil, priority : Int32 = 0, name : String | Nil = nil, event_class : E.class = E) #

[View source]