This file is indexed.

/usr/lib/ruby/vendor_ruby/pry/output.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
class Pry
  class Output
    attr_reader :_pry_

    def initialize(_pry_)
      @_pry_ = _pry_
    end

    def puts(*objs)
      return print "\n" if objs.empty?

      objs.each do |obj|
        if ary = Array.try_convert(obj)
          puts(*ary)
        else
          print "#{obj.to_s.chomp}\n"
        end
      end

      nil
    end

    def print(*objs)
      objs.each do |obj|
        _pry_.config.output.print decolorize_maybe(obj.to_s)
      end

      nil
    end
    alias << print
    alias write print

    # If _pry_.config.color is currently false, removes ansi escapes from the string.
    def decolorize_maybe(str)
      if _pry_.config.color
        str
      else
        Helpers::Text.strip_color str
      end
    end

    def method_missing(name, *args, &block)
      _pry_.config.output.send(name, *args, &block)
    end

    def respond_to_missing?(*a)
      _pry_.config.respond_to?(*a)
    end
  end
end