class

EventHandler

Inherits Reference < Object

Constructors

new(target : EventTarget)
Source

Class methods

on(target)

Attaches an instance of this event handler to target.

Source

Instance methods

handle(event)

Handles or ignores event.

Source

Macros

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!

Source
set(name, value)

Sets name to value in event target.

Source