lib/guard/watcher.rb
# Test the watchers pattern against a file.
#
# @param [String] file the file to test
# @return [Boolean] whether the given file is matched
#
Test the watchers pattern against a file.
Test the watchers pattern against a file .
def match_file?(file)
      if @pattern.is_a?(Regexp)
        file.match(@pattern)
      else
        file == @pattern ? [file] : nil
      end
    end
def match_file? ( file ) if @pattern . is_a? ( Regexp ) file . match ( @pattern ) else file == @pattern ? [ file ] : nil end end
Test the watchers pattern against a file.
Test the watchers pattern against a file .
whether the given file is matched
whether the given file is matched
Boolean
file
file the file to test
file the file to test