class Lever::On

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

Constructor methods inherited from class MiniEvents::Event

new new

Class Method Detail

def self.add_callback(name : String, once = false, &block : CallbackProc) #

Adds the named block to the callbacks


def self.add_callback(once = false, &block : CallbackProc) #

Adds the block to the callbacks


def self.clear_callbacks #

Clears all the callbacks


def self.remove_callback(name : String) #

Removes a named block


def self.trigger(me) : Nil #

Triggers all the callbacks