Guard::Dsl#watch

Parsed documentation:
View on GitHub
Defines a pattern to be watched in order to run actions on file
modification.

@example Declare watchers for a Guard
  guard :rspec do
    watch('spec/spec_helper.rb')
    watch(%r{^.+_spec.rb})
    watch(%r{^app/controllers/(.+).rb}) do |m|
      'spec/acceptance/#{m[1]}s_spec.rb'
    end
  end

@example Declare global watchers outside of a Guard
  watch(%r{^(.+)$}) { |m| puts "#{m[1]} changed." }

@param [String, Regexp] pattern the pattern that Guard must watch for
modification

@yield a block to be run when the pattern is matched
@yieldparam [MatchData] m matches of the pattern
@yieldreturn a directory, a filename, an array of
  directories / filenames, or nothing (can be an arbitrary command)

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