View on GitHub
Guard has a hook mechanism that allows you to insert callbacks for
individual Guard plugins.
By default, each of the Guard plugin instance methods has a "_begin" and
an "_end" hook.
For example, the Guard::Plugin#start method has a :start_begin hook that
is runs immediately before Guard::Plugin#start, and a :start_end hook
that runs immediately after Guard::Plugin#start.
Read more about [hooks and callbacks on the
- Add a code example (optional).