Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
hooks
master
Hooks
Handler
HandlerPair
Hook
StopPropagation
TaggedHook
Tagger
Generated using Crystal 1.14.0
2025-01-17 07:31:00 UTC
class
Hooks::
HandlerPair(T)
Hooks::HandlerPair(T)
Reference
Object
Overview
Associates a handler with its identifier
Defined in:
hooks/hook.cr
Constructors
.new
(id : String, handler : Hooks::Handler(T))
Instance Method Summary
#handler
: Handler(T)
#handler=
(handler : Handler(T))
#id
: String
#id=
(id : String)
Constructor Detail
def self.
new
(id : String, handler :
Hooks::Handler
(T))
#
[
View source
]
Instance Method Detail
def
handler
:
Handler
(T)
#
[
View source
]
def
handler=
(handler :
Handler
(T))
#
[
View source
]
def
id
: String
#
[
View source
]
def
id=
(id : String)
#
[
View source
]