This file is indexed.

/usr/lib/ruby/1.8/mechanize/inspect.rb is in libwww-mechanize-ruby1.8 1.0.0-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
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
require 'pp'

# :stopdoc:
class Mechanize
  def pretty_print(q)
    q.object_group(self) {
      q.breakable
      q.pp cookie_jar
      q.breakable
      q.pp current_page
    }
  end

  class Page
    def pretty_print(q)
      q.object_group(self) {
        q.breakable
        q.group(1, '{url', '}') {q.breakable; q.pp uri }
        q.breakable
        q.group(1, '{meta', '}') {
          meta.each { |link| q.breakable; q.pp link }
        }
        q.breakable
        q.group(1, '{title', '}') { q.breakable; q.pp title }
        q.breakable
        q.group(1, '{iframes', '}') {
          iframes.each { |link| q.breakable; q.pp link }
        }
        q.breakable
        q.group(1, '{frames', '}') {
          frames.each { |link| q.breakable; q.pp link }
        }
        q.breakable
        q.group(1, '{links', '}') {
          links.each { |link| q.breakable; q.pp link }
        }
        q.breakable
        q.group(1, '{forms', '}') {
          forms.each { |form| q.breakable; q.pp form }
        }
      }
    end

    class Link
      def pretty_print(q)
        q.object_group(self) {
          q.breakable; q.pp text
          q.breakable; q.pp href
        }
      end
    end
  end

  class Form
    def pretty_print(q)
      q.object_group(self) {
        q.breakable; q.group(1, '{name', '}') { q.breakable; q.pp name }
        q.breakable; q.group(1, '{method', '}') { q.breakable; q.pp method }
        q.breakable; q.group(1, '{action', '}') { q.breakable; q.pp action }
        q.breakable; q.group(1, '{fields', '}') {
          fields.each do |field|
            q.breakable
            q.pp field
          end
        }
        q.breakable; q.group(1, '{radiobuttons', '}') {
          radiobuttons.each { |b| q.breakable; q.pp b }
        }
        q.breakable; q.group(1, '{checkboxes', '}') {
          checkboxes.each { |b| q.breakable; q.pp b }
        }
        q.breakable; q.group(1, '{file_uploads', '}') {
          file_uploads.each { |b| q.breakable; q.pp b }
        }
        q.breakable; q.group(1, '{buttons', '}') {
          buttons.each { |b| q.breakable; q.pp b }
        }
      }
    end

    class RadioButton
      def pretty_print_instance_variables
        [:@checked, :@name, :@value]
      end
    end
  end
end
# :startdoc: