class

Hooks::Handler(T)

Inherits Reference < Object

Wraps event handling callbacks

# Create with proc
handler = Handler(Int32).new(->(data : Int32) { puts data })

# Create with block
handler = Handler(Int32).new { |data| puts data }

Constructors

new(proc : T -> _)
Source

Instance methods

call(value : T)
Source