class Lever::Off

Overview

TODO Do check to make sure @type isnt a struct

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