This file is indexed.

/usr/lib/ruby/vendor_ruby/pry/helpers/options_helpers.rb is in pry 0.10.3-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
26
27
class Pry
  module Helpers
    module OptionsHelpers
      module_function

      # Add method options to the Slop instance
      def method_options(opt)
        @method_target = target
        opt.on :M, "instance-methods", "Operate on instance methods."
        opt.on :m, :methods, "Operate on methods."
        opt.on :s, :super, "Select the 'super' method. Can be repeated to traverse the ancestors.", :as => :count
        opt.on :c, :context, "Select object context to run under.", :argument => true do |context|
          @method_target = Pry.binding_for(target.eval(context))
        end
      end

      # Get the method object parsed by the slop instance
      def method_object
        @method_object ||= get_method_or_raise(args.empty? ? nil : args.join(" "), @method_target,
                            :super => opts[:super],
                            :instance => opts.present?(:'instance-methods') && !opts.present?(:'methods'),
                            :methods  => opts.present?(:'methods') && !opts.present?(:'instance-methods')
                           )
      end
    end
  end
end