This file is indexed.

/usr/lib/ruby/vendor_ruby/rspec/mocks/matchers/expectation_customization.rb is in ruby-rspec-mocks 3.5.0c3e0m0s0-1.

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
module RSpec
  module Mocks
    module Matchers
      # @private
      class ExpectationCustomization
        attr_accessor :block

        def initialize(method_name, args, block)
          @method_name = method_name
          @args        = args
          @block       = block
        end

        def playback_onto(expectation)
          expectation.__send__(@method_name, *@args, &@block)
        end
      end
    end
  end
end