This file is indexed.

/usr/lib/ruby/vendor_ruby/nokogiri/html/sax/push_parser.rb is in ruby-nokogiri 1.6.7.2-3build1.

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
module Nokogiri
  module HTML
    module SAX
      class PushParser
        
        # The Nokogiri::HTML::SAX::Document on which the PushParser will be
        # operating
        attr_accessor :document
        
        def initialize(doc = HTML::SAX::Document.new, file_name = nil, encoding = 'UTF-8')
          @document = doc
          @encoding = encoding
          @sax_parser = HTML::SAX::Parser.new(doc, @encoding)

          ## Create our push parser context
          initialize_native(@sax_parser, file_name, encoding)
        end
        
        ###
        # Write a +chunk+ of HTML to the PushParser.  Any callback methods
        # that can be called will be called immediately.
        def write chunk, last_chunk = false
          native_write(chunk, last_chunk)
        end
        alias :<< :write

        ###
        # Finish the parsing.  This method is only necessary for
        # Nokogiri::HTML::SAX::Document#end_document to be called.
        def finish
          write '', true
        end
      end
    end
  end
end