This file is indexed.

/usr/lib/ruby/vendor_ruby/pry/commands/list_inspectors.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
28
29
30
31
32
33
34
35
class Pry::Command::ListInspectors < Pry::ClassCommand
  match 'list-inspectors'
  group 'Input and Output'
  description 'List the inspector procs available for use.'
  banner <<-BANNER
    Usage: list-inspectors

    List the inspector procs available to print return values. You can use
    change-inspector to switch between them.
  BANNER

  def process
    output.puts heading("Available inspectors") + "\n"
    inspector_map.each do |name, inspector|
      output.write "Name: #{text.bold(name)}"
      output.puts selected_inspector?(inspector) ? selected_text : ""
      output.puts inspector[:description]
      output.puts
    end
  end

private
  def inspector_map
    Pry::Inspector::MAP
  end

  def selected_text
    text.red " (selected) "
  end

  def selected_inspector?(inspector)
    _pry_.print == inspector[:value]
  end
  Pry::Commands.add_command(self)
end