abstract class EventHandler
- EventHandler
- Reference
- Object
Direct Known Subclasses
Defined in:
aspis/handlers.crConstructors
Class Method Summary
-
.on(target)
Attaches an instance of this event handler to target.
Macro Summary
-
send?(name, *args, **kwargs)
Invokes a method with the given name (a symbol literal) on target, passing it positional args and keyword arguments kwargs.
-
set(name, value)
Sets name to value in event target.
Instance Method Summary
-
#handle(event)
Handles or ignores event.
Constructor Detail
Class Method Detail
Macro Detail
macro send?(name, *args, **kwargs)
#
Invokes a method with the given name (a symbol literal) on target, passing it positional args and keyword arguments kwargs. Noop if the method does not exist.
Use with caution: use this only inside instance-side methods of a handler subclass!