class
Telecr::Core::HandlerCollection
- Telecr::Core::HandlerCollection
- Reference
- Object
Overview
Collection of handlers with helper methods
Defined in:
core/handler.crConstructors
Instance Method Summary
-
#add(type : String, filters : Hash(String, FilterValue), proc : Context -> )
Add a handler for a specific update type
-
#clear
Remove all handlers
-
#find_match(ctx : Context) : Handler | Nil
Find first matching handler for context
-
#for_type(type : String) : Array(Handler)
Get all handlers for a type
-
#stats : Hash(String, JSON::Any)
Get statistics
Constructor Detail
Instance Method Detail
Add a handler for a specific update type
Find first matching handler for context