class Lever::On
- Lever::On
- MiniEvents::Event
- Reference
- Object
Overview
Create our event class
Defined in:
Constant Summary
-
ARG_TYPES =
{"me" => Lever} of String => Object.class
-
Types of the arguments for the callback event
-
SINGLE =
false
Class Method Summary
-
.add_callback(name : String, once = false, &block : CallbackProc)
Adds the named block to the callbacks
-
.add_callback(once = false, &block : CallbackProc)
Adds the block to the callbacks
-
.clear_callbacks
Clears all the callbacks
-
.remove_callback(name : String)
Removes a named block
-
.trigger(me) : Nil
Triggers all the callbacks
Constructor methods inherited from class MiniEvents::Event
new
new
Class Method Detail
Adds the named block to the callbacks