This file is indexed.

/usr/lib/ruby/vendor_ruby/aruba/matchers/path/a_path_matching_pattern.rb is in ruby-aruba 0.14.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'rspec/expectations/version'

# @!method a_path_matching_pattern(/pattern/)
#   This matchers checks if <path> matches pattern. `pattern` can be a string,
#   regexp or an RSpec matcher.
#
#   @param [String, Regexp, Matcher] pattern
#     Specifies the pattern
#
#   @return [TrueClass, FalseClass] The result
#
#     false:
#     * if pattern does not match
#
#     true:
#     * if pattern matches
#
#   @example Use matcher with regexp
#
#     RSpec.describe do
#       it { expect(files).to include a_path_matching_pattern /asdf/ }
#     end
if RSpec::Expectations::Version::STRING >= '3.0'
  RSpec::Matchers.alias_matcher :a_path_matching_pattern, :match
end