struct Athena::EventDispatcher::EventListener

Overview

Wraps an EventListenerType in order to keep track of its #priority.

Defined in:

athena-event_dispatcher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(listener : EventListenerType, priority : Int32 = 0) #

[View source]

Instance Method Detail

def listener : EventListenerType #

The wrapped EventListenerType instance.


[View source]
def priority : Int32 #

The priority of the EventListenerType instance.

The higher the #priority the sooner #listener will be executed.


[View source]