Guard::Dsl#callback

Parsed documentation:
View on GitHub
Defines a callback to execute arbitrary code before or after any of
the `start`, `stop`, `reload`, `run_all`, `run_on_changes`,
`run_on_additions`, `run_on_modifications` and `run_on_removals` plugin
method.

@example Define a callback that'll be called before the `reload` action.
  callback(:reload_begin) { puts "Let's reload!" }

@example Define a callback that'll be called before the `start` and
`stop` actions.

  my_lambda = lambda do |plugin, event, *args|
    puts "Let's #{event} #{plugin} with #{args}!"
  end

  callback(my_lambda, [:start_begin, :start_end])

@param [Array] args the callback arguments
@yield a callback block

@see Guard::Hooker
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.