class Hooks::Handler(T)
- Hooks::Handler(T)
- Reference
- Object
Overview
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 }