method

hook

hook(event, *args, &arg_blk)
public

Runs all the hooks that are registered for the passed event

It passes the passed arguments and block to the block registered with the api.

@param [String] event