class

Thyme::HookCollection

Inherits Reference / Object

Neatly holds multiple Thyme::Hook, categorizing them by their events. The same hook may belong to multiple categories.

Constructors

new(hooks = Array(Hook).new)

Class methods

parse(hooks : YAML::Any)

Given YAML from the THYMERC_FILE, returns a HookCollection with hooks parsed and neatly sorted

Instance methods

after(hooks_args)
after_all(hooks_args)
after_break(hooks_args)
before(hooks_args)
before_all(hooks_args)
before_break(hooks_args)
size