class Guard::Watcher

def self.match_files?(plugins, files)

Returns:
  • (Boolean) - Whether a file matches

Parameters:
  • files (Array) -- the files to test
  • plugins (Array) -- the Guard plugins to use the
def self.match_files?(plugins, files)
  plugins.any? do |plugin|
    plugin.watchers.any? do |watcher|
      files.any? { |file| watcher.match(file) }
    end
  end
end