annotation Tourmaline::On

Overview

Run the annotated method every time a particular UpdateAction is fired.

Example:

@[On(:message)]
def on_message(message)
  pp message
end

Defined in:

tourmaline/annotations.cr