/usr/lib/ruby/vendor_ruby/nokogiri/html/sax/parser_context.rb is in ruby-nokogiri 1.6.8.1-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 | module Nokogiri
module HTML
module SAX
###
# Context for HTML SAX parsers. This class is usually not instantiated
# by the user. Instead, you should be looking at
# Nokogiri::HTML::SAX::Parser
class ParserContext < Nokogiri::XML::SAX::ParserContext
def self.new thing, encoding = 'UTF-8'
[:read, :close].all? { |x| thing.respond_to?(x) } ? super :
memory(thing, encoding)
end
end
end
end
end
|